Search Results for “first responder kit”

4.3b Final Lab: Logging sp_BlitzCache to a Table

Oops! In the last module, while tuning a query, I accidentally cleared the plan cache with DBCC FREEPROCCACHE. Normally, that would be a huge problem for performance tuning – but thankfully, I’m logging sp_BlitzFirst and sp_BlitzCache to tables every 15 minutes in the lab. I show you how to jump back in time and grab…

To access this incredible, amazing content, you gotta get Mastering Query Tuning or Recorded Class Season Pass, or log in if you already shelled out the cash.
Read More
Brent Ozar Webcast

Upcoming Free Training Webcasts

Videos
2 Comments
Hey, wanna learn about SQL Server for free? Feb 7 – PASS Data Expert Series: PASS is taking the top-rated Summit 2018 recordings and replaying them live, for free, on a webcast. I’ll be in the chat room too, taking your questions. Register here, and the lineup includes: SSMS & T-SQL Tricks with Bob Pusateri…
Read More

Fast Food Code

SQL Server
0
Cheap and Easy We’ve all done it. We all know what and where it is, because we’ve probably left a comment for ourselves to go fix it later. It wasn’t me, I swear to myself. Either it was expedient, it seemed to work locally, it was fast on a small amount of data, or we…
Read More

Adventures In Foreign Keys 3: Why Cascading Deletes Perform Slowly

Legendreary In the last post, I looked at some issues with implementing foreign keys with cascading actions. Namely that, well, it fell apart pretty quickly just trying to set up. I didn’t even get to the point where I wanted to test all those relationships. But there’s an even worse surprise waiting for you if…
Read More

The Curse of Cursor Options

Execution Plans
12 Comments
Red Skies At Night I know it’s hard to believe, but I still see a lot of people using cursors when they shouldn’t. Other times, there’s some scary dungeon part of the code that someone wrote eons ago that no one wants to go anywhere near to fix. Sometimes there’s a decent reason, something like:…
Read More
PowerShell for DBAs

You read reviews before you buy training, right?

Company News
0
Confession time: I love buying stuff. It’s not so much the buying as it is the comparing. I go to The Wirecutter, I read every review on Amazon, and I make little Excel spreadsheets to show differences between products. So what about when you buy database training? Do you read the reviews? If you’ve been…
Read More

Queries With Poor Cardinality Estimated or Skewed Parallelism

Dun Goofed If you’re here, you hit an issue where SQL Server made a bad guess at how many rows it’d have to deal with in a query. This doesn’t always indicate a killer performance issue, but it does warrant investigation. This can happen for a lot of reasons, including parameter sniffing, implicit conversion, non-SARGable…
Read More

High Compilers

Bright Light City If you’re here, you most likely have a plan in your cache that uses a lot of resources to compile. By itself, this isn’t a very interesting or actionable metric, but if you add in some other stuff, you can find interesting problems. If plans like this compile or recompile frequently, you…
Read More

Wait Stats Should Be Easy By Now

Wait Stats
1 Comment
Why Is My Query… We’ve all started a question with a close approximation of those words. No matter how you finish that sentence, there’s some basic information that you need to collect to figure it out, like: Query plan Wait stats Other server activity Those are a good place to start. It’s easy enough to…
Read More