Search Results for “SQLQueryStress”

How To Set Up Your SQL Server Training Class Lab VM

29 Comments
If you’re taking Fundamentals of Columnstore or any of my Mastering SQL Server classes, you’re going to need your own SQL Server VM to follow along with the labs. The setup is exactly the same for all of those classes, so as long as you’ve set up for any of ’em, you’re good to go.…
Read More

0 – Prerequisites Before the Class

2 Comments
Hi, Brent here! I’m really excited to welcome you to class. Get your brain ready by taking the classes in order. I recommend that you take the classes in this order: How to Think Like the Engine How I Use the First Responder Kit Fundamentals of Index Tuning Optional: Fundamentals of Columnstore (you can skip…
Read More

4 – Temp Tables and Table Variables at Scale: PFS/GAM/SGAM Contention

Because it’s so easy to create & use temp tables, some applications grow to depend on ’em. If your workload creates, loads, and drops thousands of temp tables per second, you can hit a SQL Server bottleneck involving how SQL Server tracks where objects live in TempDB. It’s called latch contention, also known as PFS/GAM/SGAM…

To access this incredible, amazing content, you gotta get Recorded Class Season Pass or Fundamentals of TempDB, or log in if you already shelled out the cash.
Read More

5 – Memory-Optimized Table Variables

In the last module, we finished up by showing how Microsoft used In-Memory OLTP (Hekaton) technology in SQL Server 2019 to let TempDB’s system tables work faster. That’s an easy way to reduce latch wait times, but it’s not the only way: you can directly adopt In-Memory OLTP yourself by changing your temp tables to…

To access this incredible, amazing content, you gotta get Recorded Class Season Pass or Fundamentals of TempDB, or log in if you already shelled out the cash.
Read More

When You’re Troubleshooting Blocking, Look at Query #2, Too.

When I’m troubleshooting a blocking emergency, the culprit is usually the query at the head of a blocking chain. Somebody did something ill-advised like starting a transaction and then locking a whole bunch of tables. But sometimes, the lead blocker isn’t the real problem. It’s query #2. Here’s a sample scenario: A long-running select with…
Read More
Fundamentals of Columnstore

0.2 How to Set Up Your Own Lab Server

1 Comment
In the rest of my Fundamentals classes, I use a small Stack Overflow database, but that doesn’t cut it for Fundamentals of Columnstore. Columnstore indexes are all about big data, so for this class, I use the same setup as my Mastering classes. If you want to run this class’s labs on your own (either…
Read More

Bad Idea Jeans: Building Big Query Plans

Bad Idea Jeans
7 Comments
When you build a monitoring tool that sends advice via email, you discover two things: Some people have really, really big execution plans Email servers have reasonable limits on file attachment sizes Add those two things together, and Richie found himself working on a new feature for SQL ConstantCare® that would automatically break up advice…
Read More

Bonus Lab: Seeing the Effects of SQL Server 2019 Compat Mode

This lab is left as an extra exercise for the reader if you’d like to do it later on your own. So far in the class, we’ve been using 2017 compatibility mode. If you’d like to see how 2019 performs differently, you can turn on all of the cutting edge features on your version of…

Read More

2.4 Lab 3: Track Down Plans & Parameters

Now, it’s your turn: we’re going to run a workload in your lab while sp_BlitzFirst collects data and Query Store runs. You’ll query the plan cache history in DBAtools.dbo.BlitzCache and BlitzWho, find queries whose plans are changing, and gather parameters & plans to use that will help you design a better plan tomorrow. You don’t…

Read More

08. Lab: Tackle a Parameter Sniffing Emergency

The phones are ringing, the users are screaming, and your manager is dropping four-letter words. The server’s performance has tanked, and you’re the one on call. Start up a workload, find the query who suddenly got a terrible plan, and do the needful. Part 1: Setting Up the Lab Part 2: Your Mission Part 3:…

Read More

0.1 Prerequisites Before the Class

Hi, Brent here! I’m really excited to welcome you to class. Get your brain ready by taking the classes in order. I recommend that you take the classes in this order: How to Think Like the Engine How I Use the First Responder Kit Fundamentals of Index Tuning Optional: Fundamentals of Columnstore (you can skip…
Read More

1 Prerequisites Before the Class

8 Comments
Hi, Brent here! I’m really excited to welcome you to class. Get your brain ready by taking the classes in order. I recommend that you take the classes in this order: How to Think Like the Engine How I Use the First Responder Kit Fundamentals of Index Tuning Optional: Fundamentals of Columnstore (you can skip…
Read More

0 Prerequisites Before the Class

10 Comments
Hi, Brent here! I’m really excited to welcome you to class. Get your brain ready by taking the classes in order. I recommend that you take the classes in this order: How to Think Like the Engine How I Use the First Responder Kit Fundamentals of Index Tuning Optional: Fundamentals of Columnstore (you can skip…
Read More
Performance Tuning in One Day

Performance Tuning in One Day

You’re stuck with a database server that’s not going fast enough. You’ve got a hunch that the biggest bottleneck is inside the database server somewhere, but where? In this one-day class, you’ll learn how identify which queries are killing your server, what parts of the database server are holding you back, how to tackle indexing…
Read More

Is It a Code Problem or a Server Problem?

Your users are complaining that your SQL Server is slow – but is it a database problem, or not enough hardware? It’s confusing because the developers always blame the sysadmins, and the sysadmins always blame the developers. In one hour, you’ll learn: The 3 metrics to monitor on every SQL Server: Batch Req/Sec, Data Size,…
Read More

Free SQL Server Load Testing Tools

Load Testing
17 Comments
So you wanna run a load test against SQL Server. One thing I need you to understand first: you have to provide the database and the queries. Almost all of the tools in this post, except the last one, are designed to help you run queries, but they don’t include the queries. The whole idea…
Read More