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.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 SQL Profiler not displaying 'reads'

Author  Topic 

Gyto
Posting Yak Master

144 Posts

Posted - 2009-11-02 : 10:59:30
Hi there,

I am trying to use SQL Profiler to capture the number of reads each T-SQL batch is performing, but at the moment it is showing as 0 for everything.

I have included the following events:

SQL:BatchCompleted
RPC:Completed

Is there any other events I should be including in order to get the number of reads to show for each batch or are there some settings I need to check?

Thanks,

Matt

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-11-02 : 11:02:06
SQL:StatementCompleted


N 56°04'39.26"
E 12°55'05.63"
Go to Top of Page

Gyto
Posting Yak Master

144 Posts

Posted - 2009-11-02 : 11:10:15
Still no luck unfortunately....it just doesn't seem to be picking them up.

Thanks
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-11-02 : 13:56:14
Which is the appication you are trying to monitor?



N 56°04'39.26"
E 12°55'05.63"
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-11-02 : 14:27:51
SQL Profiler GUI displays the information in milliseconds, so you may be encountering rounding. Save the GUI results to a file or table, and then query it to see what the Reads column shows. The file/table data is stored in microseconds.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

Gyto
Posting Yak Master

144 Posts

Posted - 2009-11-04 : 05:53:59
I am just trying to analyze the queries for the database that holds all our timesheet information, however it's not showing the reads for any of the databases.

Tkizer, I thought 'reads' was literally the number of logical reads the statement made, rather than the time it took? I will give it a go though....thanks!
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-11-04 : 12:32:36
Sorry I got confused. I thought you were asking about Duration.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

Gyto
Posting Yak Master

144 Posts

Posted - 2009-11-05 : 06:18:18
Is duration an equally good (or better?) indication of query performance? If so I'll just use that...
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-11-05 : 11:55:32
You have to look at Duration, Reads, Writes, and CPU. When there is blocking going on, duration isn't a good indicator since the query execution might have been held up by blocking but wasn't the culprit.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page
   

- Advertisement -