• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 247
  • Last Modified:

SQL Performance Tuning

I was wondering if anyone has any ideas for performance tuning/optimization for both SQL 2005 and 2008.  Right now we are using the default configurations, but are running into some bottlenecks.

Looking for appropriate Paging File algorithms
Performance Optimation
Performance Monitoring
1 Solution
Brendt HessSenior DBACommented:
The top suggestions for optimizing, the ones that normally gains the most performance (usually by orders of magnitude) compared to other possibilities, are:

Add Indexes
Add usable memory
Use RAID-10 disks
Split TempDB, Log, and Data files to separate physical disk sets.
Add maintenance plans that are run on a regular schedule.  The two plans I recommend are Otimizations and Integrity checks through the Database Maintenance Plans.  I usually schedule these to run weekly.  Backups should be run first.  SQL Agent needs to be running to allow the jobs to be scheduled.

The database should be backed up regularly, and the transaction logs truncated.  If the transaction logs have gotten very large, you may need to shrink them.   I typically run full backups daily, and hourly transaction backup logs for systems that have normal business hours availability.

For testing performance, I suggest running SQL Profiler, looking for queries that have high reads or writes, or have high CPU.  You can set filters when running SQL Profiler so you only see the high cost transactions.

If you seem to be having many locks, check the "Current Activity" section of the Enterprise manager - locks & blocks will be displayed there.

Other improvements can be to add memory available to SQL Server, increase the processors available to SQL Server (that may not be easy)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now