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 |
qwertyjjj
Posting Yak Master
131 Posts |
Posted - 2007-10-15 : 10:19:19
|
Trying to find some guides on how to investigate trace data.I noticed a lot of queries with Reads but the duration was 0.Is this a cause for concern? Why would it be zero?Also, how many reads would you say is too many? I realise it's a bit subjective... |
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2007-10-15 : 10:21:57
|
Very subjective.If you have DURATION is 0, but has plenty of READS, you have fast disk access!We have READS of 400,000 (DURATION 12,500) which we now think is minimal for that type of query. It was 8,000,000 (DURATION 122,000) before. E 12°55'05.25"N 56°04'39.16" |
 |
|
qwertyjjj
Posting Yak Master
131 Posts |
Posted - 2007-10-15 : 10:30:52
|
Well, one trace starts running a load of sp_execute code.All reads say 3, duration 0, CPU 0. Obviously, it's not 0 because it starts at say 10:00:10 and finishes getting through all of them at 10:00:50.Whereas a proper SQL query like SELECT field1, field2 from table has about 600 reads and a duration of 3016Seems odd. |
 |
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2007-10-15 : 10:37:08
|
Have you tried all these four?SP:StmtCompletedSP:StmtStartingSQL:StmtCompletedSQL:StmtStarting E 12°55'05.25"N 56°04'39.16" |
 |
|
evilDBA
Posting Yak Master
155 Posts |
Posted - 2007-10-15 : 11:59:42
|
Reads , recorded in SQL profiler, are LOGICAL reads, not PHYSICAL readsSo you can have many reads and Duration=0 |
 |
|
qwertyjjj
Posting Yak Master
131 Posts |
Posted - 2007-10-15 : 12:06:46
|
How would I find which trace entry corresponds to a DLookup from Access?I presume the JET engine would transform this over into SQL at some point?I just want to see if the DLookup is scanning en entire table and issuing multiple selects when it could all be done in 1 go. |
 |
|
|
|
|
|
|