Solved

What does the elapsed time mean?

Posted on 2011-02-16
5
839 Views
Last Modified: 2012-08-13
SQL Server parse and compile time:
   CPU time = 0 ms, elapsed time = 21 ms.

What does the elapsed time mean?
0
Comment
Question by:Mr_Shaw
  • 2
  • 2
5 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 167 total points
ID: 34905808
it means that the process took 21 milliseconds to complete, with 0 (rounded) ms where on CPU.
means that almost "all the time" the process had to wait for the CPU ...
0
 
LVL 15

Assisted Solution

by:Aaron Shilo
Aaron Shilo earned 333 total points
ID: 34905823
hi

this means the time it took sql server to Parse And Compile The query
before executing it.
0
 

Author Comment

by:Mr_Shaw
ID: 34905847
when the cpu = 0  deos it mean that the query was not recompiled.

If yes.... did it take 21ms to establish no recompile is needed?
0
 
LVL 15

Assisted Solution

by:Aaron Shilo
Aaron Shilo earned 333 total points
ID: 34905987
Mr Shaw

dont forget that a soft Parse does take time eaven if the query wasent recompiled.

and yes if cpu is 0 then the query was probably not recompiled, eaven thow it is possible that the value was lower and rounded down.
0
 

Author Closing Comment

by:Mr_Shaw
ID: 34906097
thanks
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now