Viewing 15 posts - 1 through 15 (of 49 total)
Add @@servername in the query. It will give the server name in the output results.
January 2, 2013 at 9:45 am
this work worked like a charm. This is the one I am looking for. Thanks a lot.
April 27, 2012 at 9:13 am
select istatus, dtmoveout, bmovedout, *
from tenant
where istatus in (1,4)
and dtmoveout + 7 < getdate ()
and isnull(bmovedout,0) <> -1
Try like this.
February 21, 2012 at 9:00 am
SELECT deqs.last_execution_time AS [Time], dest.TEXT AS [Query],
deqs.total_elapsed_time/1000000 as Total_Execution_time,
deqs.total_worker_time/1000000 as CPU_time
FROM sys.dm_exec_query_stats AS deqs
CROSS APPLY sys.dm_exec_sql_text(deqs.sql_handle) AS dest
ORDER BY deqs.last_execution_time DESC
January 31, 2012 at 11:51 am
Have you checked what it is trying to delete? If the command is deleting millions of rows, and you are trying to kill, then it is trying to roll...
January 26, 2012 at 1:35 pm
Nevermind. I figured it out
October 12, 2010 at 12:58 pm
I have service table
Dealerid Vin transactiondt
123 xxxx sep 30 2010
123 ...
October 12, 2010 at 11:11 am
Thanks guys. it is working. is there any to automate so that every time new row added it will update by itself
August 25, 2010 at 6:56 pm
Viewing 15 posts - 1 through 15 (of 49 total)