Category: First Responder Kit

Performance Tuning

Analyzing Temporary Stored Procedures with sp_BlitzCache

All the cool kids Know that when you're trying to figure out why a stored procedure is slow sometimes, you should use a temporary stored procedure instead of pulling the code out and running it ad hoc. We frequently point people to Erland Sommarskog's "Slow in the Application, Fast in SSMS", because it's an excellent…

Read more about Analyzing Temporary Stored Procedures with sp_BlitzCache 4 comments — Join the discussion

What To Do If sp_BlitzFirst Warns About High Compilations

Compiles Aren't The Same As Recompiles
If you're seeing high RECOMPILES, this post isn't for you. We'll talk about the differences between compiles and recompiles, but not how to troubleshoot recompiles.

Recompiles mean one of two obvious things: You have a RECOMPILE hint at the stored procedure or statement level, or SQL found a reason that a new query plan had to be compiled, despite the presence of what was once a perfectly good query plan.

Read more about What To Do If sp_BlitzFirst Warns About High Compilations 5 comments — Join the discussion

Learn to Use sp_Blitz, sp_BlitzCache, sp_BlitzFirst, and sp_BlitzIndex with These Tutorial Videos

There have been so many improvements lately to our First Responder Kit scripts that it was time to update our tutorial videos. Each of these is about ten minutes long and shows how to use 'em:
How to Use sp_Blitz for a Health Check
https://youtu.be/5QAL9itupMA
How to Use sp_BlitzCache to Find Slow Queries
https://youtu.be/EkLuXURMwso
How to Use sp_BlitzIndex to Check Your Indexes
https://youtu.be/8Wo5M7kYO20

Read more about Learn to Use sp_Blitz, sp_BlitzCache, sp_BlitzFirst, and sp_BlitzIndex with These Tutorial Videos 22 comments — Join the discussion

First Responder Kit 2016-09: sp_Blitz, sp_BlitzCache, sp_BlitzIndex Improvements

First, thanks to 5 community volunteers for contributing code this month. In addition to lots of bug fixes, small stuff, and a new Github issue template (thanks, Konstantin Taranov) here's the big improvements: sp_Blitz Changes @OutputServerName writes output to remote server (Haris Khan) - for years, these stored procs have had an @OutputServerName parameter just waiting to…

Read more about First Responder Kit 2016-09: sp_Blitz, sp_BlitzCache, sp_BlitzIndex Improvements Be the first to comment
Performance Tuning

Query Tuning Week: How to Run sp_BlitzCache on a Single Query

The most popular way of using sp_BlitzCache® is to just run it - by default, it shows you the top 10 most CPU-intensive queries that have run on your server recently. Plus, it shows you warnings about each of the queries - if they're missing indexes, experiencing parameter sniffing issues, running long, running frequently, doing implicit conversion, you name it.

Read more about Query Tuning Week: How to Run sp_BlitzCache on a Single Query 5 comments — Join the discussion
Performance Tuning

Where Do Missing Index Requests Come From?

Be honest, here You don't care about most indexing problems. Duplicates, Borderline Duplicates, Unused, Wide, Non-aligned Partitions... All you're here for are the Missing Indexes. Wham, bam, your query finishes in less than a second, ma'am. Take this quarter, go downtown and have a rat gnaw that thing off your face. And I get it.…

Read more about Where Do Missing Index Requests Come From? 1 comment — Join the discussion

How to Contribute Code to the SQL Server First Responder Kit (Github)

So you'd like to fix a bug or contribute code to the First Responder Kit, but you're new to Github. Let's get started.
1. Open a new issue on Github.
Go to the Github issues list for this repo, and start a new issue. Here's the example that I'm going to work on today:

In the issue title, put the name of the script, and some basic details so someone can see at a glance what's going on.

Read more about How to Contribute Code to the SQL Server First Responder Kit (Github) 7 comments — Join the discussion
Performance Tuning

Breaking News: 2016 Query Store cleanup doesn’t work on Standard or Express Editions

If you're using SQL Server 2016's awesome new feature, Query Store, there's a new bug with automatic cleanup. Books Online explains: Automatic data cleanup fails on editions other than Enterprise and Developer. Consequently, space used by the Query Store will grow over time until configured limit is reached, if data is not purged manually. If…

Read more about Breaking News: 2016 Query Store cleanup doesn’t work on Standard or Express Editions 5 comments — Join the discussion

First Responder Kit Updated, and sp_AskBrent is now sp_BlitzFirst

We've released the first fully open source version of our SQL Server First Responder Kit: sp_Blitz, sp_BlitzCache, sp_BlitzIndex, sp_BlitzRS, sp_BlitzTrace, and the newest member: the newly renamed sp_BlitzFirst.

I wanted to rename sp_BlitzFirst because as an open source project, it's going to have more than just my own answers as to why your SQL Server is slow. So I asked for your naming suggestions, and we got over 300! Here's my favorites in no particular order:

Read more about First Responder Kit Updated, and sp_AskBrent is now sp_BlitzFirst 7 comments — Join the discussion

New sp_Blitz® v35 Checks for Unsupported and Dangerous SQL Server Builds

News broke recently of a dangerous data loss bug in SQL Server 2012 and 2014, and Aaron Bertrand explained which patch levels are affected. It's kinda tricky, and I'm afraid most people aren't even going to know about the bug - let alone whether or not they're on a bad version. I added build number checking into…

Read more about New sp_Blitz® v35 Checks for Unsupported and Dangerous SQL Server Builds 11 comments — Join the discussion
Performance Tuning

How to Find ‘Secret Columns’ in Nonclustered Indexes

sp_BlitzIndex® just can't keep a secret. That's a feature, not a bug. I wrote sp_BlitzIndex® specifically so that it would rat out some things that SQL Server is doing behind the scenes to secretly help you out-- because it's really better if you know about it. What are secret columns? SQL Server needs a unique…

Read more about How to Find ‘Secret Columns’ in Nonclustered Indexes 21 comments — Join the discussion