I haven’t changed anything, but my SQL Server’s response time has slowed considerably…

Filed under: Administration, SQL Server 2005, Transact-SQL (T-SQL), Tuning and Optimization — Ari Weil at 4:02 am on Thursday, November 29, 2007

I’ve recently dealt with a number of cases/queries from DBAs making the same claim (above). What gives? All of these professionals were certain there was an internal issue plaguing their SQL Server when in fact physical file fragmentation was to blame.

Diagnosing and dealing with fragmented files shouldn’t be a last attempt at resovling a performance bottleneck. Rather, file configuration, growth and maintenance procedures should be an integral part of every DBAs planning and maintenance process. Why is fragmentation a problem? Check out this article from sql-server-performance.com to see how fragmentation occurs and how it affects your SQL Server (if you’ve got Quest’s Performance Analysis for SQL Server 6 this information will be presented to you in context-sensitive performance advisory topics). There are a number of tools in the marketplace (like Diskeeper) that can help, but good old-fashioned T-SQL can help overcome the problem just as well.

Quest offers a number of products that can help identify and deal with fragmentation (and a slew of other Disk I/O related slowdowns). For more information as your sales / support engineers about Spotlight, Performance Analysis and Foglight for SQL Server. This triple-threat of database analysis and tuning products interface with a number of Quest tools and dovetail nicely to take the guesswork out of even the toughest performance problems.

2 Comments »

Pingback by SQLServerPedia » Does a database backup/restore update statistics?

December 13, 2007 @ 3:58 am

[...] provided, it would appear that you fixed a physical file (extent) fragmentation problem (see a previous post on fragmentation in SQL Server). Had you not already backed and restored the database, I would have suggested you either run DBCC [...]

Pingback by SQLServerPedia » I keep reading “Best Practice” information on database design. The theories are great and all, but are they really relevant?

December 17, 2007 @ 7:17 am

[...] a plan for dealing with physical and logical fragmentation to help maintain query performance. Diskeeper or T-SQL can be used to deal with physical fragmentation, while logical fragmentation can be handled using DBCC DBREINDEX or ALTER INDEX … REBUILD. [...]

RSS feed for comments on this post. TrackBack URI

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>