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
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2005

From novice to tech pro — start learning today.