A simple script that is enable me to save lot of time, to find out which database is in runnable status in my server. you can use SQL Profiler but i find this one is very simple for me.hope it helps you friends!!!! EXEC sp_who
To Finding if Current Week is Odd or Even – Script DECLARE @CurDate DATETIME SET @CurDate = GETDATE() SELECT WeekOfMonth = DATEPART(wk, @CurDate) - DATEPART(wk,DATEADD(m, DATEDIFF(M, 0, @CurDate), 0)) + 1, CASE WHEN (DATEPART(wk, @CurDate) - DATEPART(wk,DATEADD(m, DATEDIFF(M, 0, @CurDate), 0)) + 1) % 2 = 1 THEN 'Odd' ELSE 'Even' END EvenorOdd