x

Query - High disk read time

How can I identify the more slower queries? I have a performance problems on my database server. The disk read time is very high.

more ▼

asked Nov 16, 2009 at 05:29 PM in Default

avatar image

Felipe
262 23 23 26

(comments are locked)
10|1200 characters needed characters left

2 answers: sort voted first

For SQL Server 2000, I would suggest running a trace using SQL Server Profiler and filtering either on CPU, duration and/or reads (and possibly writes). With the filter, SQL Server Profiler will only show queries that meet your specification. For example, duration > 1000 milliseconds.

more ▼

answered Nov 16, 2009 at 05:51 PM

avatar image

Jim Orten
646 8 10 13

(comments are locked)
10|1200 characters needed characters left

Instead of using the Profiler gui to collect this data, I'd suggest, very strongly, that you set up a server side trace. This is using the trace events that Profiler uses, but activated through a TSQL script. This puts less of a load on the server and guarantees a good set of data will be collected. Gail Shaw has two excellent articles on how to set this up over at Simple-Talk. Here's the first one.

more ▼

answered Nov 17, 2009 at 09:54 AM

avatar image

Grant Fritchey ♦♦
137k 20 43 81

Couldn't agree more Grant. When I do performance troubleshooting I use a set of server-side trace scripts and also use perfmon logs and alerts to track performance information. I then like to load the trace into a table and query it based on cpu, reads, writes and duration to find the top n queries by any of those metrics.

Nov 17, 2009 at 10:32 AM Mark Allison
(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x502
x428

asked: Nov 16, 2009 at 05:29 PM

Seen: 2630 times

Last Updated: Nov 16, 2009 at 05:44 PM

Copyright 2016 Redgate Software. Privacy Policy