Solved

What does the elapsed time mean?

Posted on 2011-02-16
5
852 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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
I have a large data set and a SSIS package. How can I load this file in multi threading?
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

732 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