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 |
ranjeetsingh_6
Posting Yak Master
125 Posts |
Posted - 2006-09-05 : 05:28:18
|
Hi How i will know execution time of my query.Ranjeet Kumar Singh |
|
harsh_athalye
Master Smack Fu Yak Hacker
5581 Posts |
Posted - 2006-09-05 : 05:33:20
|
Add SET STATISTICS TIME ON before the query and run the batch.Harsh AthalyeIndia."Nothing is Impossible" |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2006-09-05 : 05:38:55
|
It is also good practice to addDBCC DROPCLEANBUFFERSDBCC FREEPROCCACHEbefore the query, to ensure you are running the query from scratch and not from cache.Peter LarssonHelsingborg, Sweden |
|
|
ranjeetsingh_6
Posting Yak Master
125 Posts |
Posted - 2006-09-05 : 05:52:13
|
Hii use this but not find how much time spend in execution i use this asSET STATISTICS TIME ON select * from Vechiletrack (--This is my query and i want its execution time )Ranjeet Kumar Singh |
|
|
harsh_athalye
Master Smack Fu Yak Hacker
5581 Posts |
Posted - 2006-09-05 : 05:57:44
|
Check the messages tab for:SQL Server Execution TimesAlso, you may find that it read Elapsed time as 0 ms for a lightweight query.Harsh AthalyeIndia."Nothing is Impossible" |
|
|
|
|
|