Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL 2005 TRACE DURATION

Status
Not open for further replies.

Tekreader

Programmer
Dec 11, 2007
6
US
Hi,
In order to find procs ran more than 1 minute in sql 2000 we do like this

select * from tracetable
where DURATION/60000 > 1

can anyone tell me what value i should use for 2005 trace duration,Because in sql 2000 it is saved as milliseconds but in sql2005 it is saved as microseconds.
 
If your trace table is really big, this could offer superior performance:

WHERE duration > 60000 -- aka 60,000 milliseconds aka 60 seconds

I'll follow in Denis's spirit and tell you that you have some multiplying by 1000 to do in there somewhere.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top