Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
skillile
Posting Yak Master
208 Posts |
Posted - 2002-05-07 : 14:54:09
|
| Is there a sp_XXX or a funtion that returns the execution time of an individual query.I have a query that does something like this:master exec(1) here i want to return time to db log exec(2) here i want to return time to db logend masterslow down to move faster... |
|
|
YellowBug
Aged Yak Warrior
616 Posts |
Posted - 2002-05-08 : 05:32:25
|
| Look at the system time with getdate before and after a query if all you need to measure is elapsed time. However, if you want elapsed time, actual CPU time, compilation time, use SET STATISTICS TIME ON. |
 |
|
|
VyasKN
SQL Server MVP & SQLTeam MVY
313 Posts |
Posted - 2002-05-08 : 07:10:07
|
| Also look at the possibility of using SET STATISTICS TIME ON--HTH,Vyashttp://vyaskn.tripod.com |
 |
|
|
|
|
|