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

Felipe gravatar image

Felipe
262 23 23 23

(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

Jim Orten gravatar image

Jim Orten
646 8 8 10

Nov 16, 2009 at 05:57 PM Jim Orten
(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

Grant Fritchey gravatar image

Grant Fritchey ♦♦
101k 19 21 74

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.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

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:

x474
x373

asked: Nov 16, 2009 at 05:29 PM

Seen: 2396 times

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