You should hire Richie Rump. Here's why.

Category: sp_BlitzCache

Performance Tuning

How to Track Performance of Queries That Use RECOMPILE Hints

Say we have a stored procedure that has two queries in it - the second query uses a recompile hint, and you might recognize it from my parameter sniffing session:
[crayon-6a6b6919a224b207328860/]
The first query will always get the same plan, but the second query will get different plans and return different numbers of rows depending on which reputation we pass in.

Read more about How to Track Performance of Queries That Use RECOMPILE Hints 2 comments — Join the discussion
Performance Tuning

DBA Training Plan 12: What Query Plans Are In Cache?

In the last episode, while talking about the basics of executing queries, I said that SQL Server caches execution plans in memory, reusing them whenever the same query gets executed again. I've also talked about the dynamic management views (DMVs) that let you query what's in SQL Server's memory. Let's put those two things together and find out what queries have been running on the server lately.

Read more about DBA Training Plan 12: What Query Plans Are In Cache? 5 comments — Join the discussion

How to Do a Free SQL Server Performance Check

Your client or boss just said, "Find out why this SQL Server is slow." You've already done a free SQL Server health check, and now you wanna investigate deeper.
Step 1: Download & run sp_BlitzFirst.
Start with wait stats, which tell you what the SQL Server has been waiting on since the service was last started, or since someone cleared wait stats with DBCC SQLPERF, whichever is more recent.

Read more about How to Do a Free SQL Server Performance Check 9 comments — Join the discussion
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

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
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