Call Us: US - +1 845 478 5244 | UK - +44 20 7193 7850 | AUS - +61 2 8005 4826

Measuring SQL Server Performance

How to Do Index Performance Tuning

If you’re not allowed to optimize the SQL queries, but you still need to speed them up, then you may need to design nonclustered indexes and covering indexes. This can increase the performance of a SQL query without

want to make the database structures more efficient so SQL Server works less, here’s our resources:

  • sp_BlitzIndex® – run this in your database for a free sanity check. It shows missing indexes, unused indexes, duplicates, heaps, and more, and explains why they’re killing your performance.
  • Indexing resources – our favorite blog posts and videos about tuning indexes.
  • SQL Server Book Recommendations – okay, the books aren’t free, but our recommendations are. We pick the best beginner, advanced, and performance tuning books.
  • Table partitioning – this feature seems like a great way to split up big tables, but it comes with some big gotchas.
  • How to tune indexes – and make SQL Server queries go faster.

Performance Tune SQL Server’s Settings

Surprisingly, a lot of SQL Server’s default settings can lead to bad performance. Let’s talk through what you need to do:

  1. Run sp_Blitz® on the server. It’s a free health check that catches many common performance bottlenecks.
  2. Check our SQL Server Setup Checklist – some simple configuration tweaks can get you 20-30% performance increases right from the start without spending any extra money.
  3. Review the Poor Performance Checklist – Jeremiah’s 5 things that fix bad SQL Server performance.
  4. Sysadmin’s Guide to SQL Server Memory – why isn’t sqlserver.exe using much memory? How can you tell if it needs more?

Performance Tune the Hardware

Hey, sometimes, throwing hardware at it is the fastest, easiest, and cheapest fix.

Building and Load Testing New SQL Servers

When you’re planning how big of a server to build, start with Brent’s video from Microsoft TechEd 2012, Building the Fastest SQL Servers. He explains the two common access patterns for databases (OLTP and data warehousing) and gives you resources on what hardware to pick for each.

For data warehouses, go to the Microsoft Fast Track Landing Page, but BEFORE YOU CLICK, this page has a lot of marketing stuff, and you need to know what you’re looking for. Focus on the Reference Configurations and Configuration Guides.  There are some vendor-neutral ones from Microsoft, and then there’s vendor-specific guides from Dell, HP, IBM, etc. You may have to scroll all the way to the bottom to see the vendor-specific stuff.

Once the server is built, here’s our favorite resources for load testing and setup:

  • How Fast is Your Storage? – I show you how to use the free CrystalDiskMark tool to do a fast load test on solid state drives and SANs.
  • How to Test SAN Performance with SQLIO – SQLIO is probably the worst-named tool in history: it has nothing to do with databases. It’s still really useful to test bottlenecks though.

Need SQL Server consulting?
We’re performance tuning consultants.

We specialize in making Microsoft SQL Server fast and reliable.

Our clients are diverse: dot-com sites, hedge funds, hospitals, software vendors, and all the way down to small 1-2 person shops. They all have one thing in common: they’re frustrated with their SQL Servers, and they need fast, cost-effective answers.

You’ve probably seen us present at conferences around the world, and you might have even learned something. You’ll love our in-person training classes and training videos.

Want faster, personalized help? We offer a SQL Server health and performance check-up that quickly gets to the root cause of issues and shows you how to fix it. Contact us now to learn more.