Solved

What does the elapsed time mean?

Posted on 2011-02-16
5
849 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 143

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
GeoClustering  and AOG 25 41
sql query help 15 50
unable to reinstall SCVMM 2012 R2 - SQL errors. 5 35
SQL Server Express or Standard? 5 21
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…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

735 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