First Responder Kit Release: The Ides Of November
IB Rewop This is a cleanup release to get some of the pull requests in that didn’t make it in before the precon. There’s also a secret unlockable character that Brent is blogging about next week!...
View ArticleGood Reasons to Rebuild or Reorganize Indexes
No, not that It’s not the F word. Not like this embarrassing page that was somehow updated in 2017, which still tells you to reorg at 5% and rebuild at 30% fragmentation, like your data is still on a...
View ArticlePartition Level Locking: Explanations From Outer Space
It’s not that I don’t like partitioning It’s just that most of my time talking about it is convincing people not to use it. They always wanna use it for the wrong reasons, and I can sort of understand...
View ArticleFirst Responder Kit Release: Treating Object References Like Object...
Object reference not set to an instance of an object. You can download the updated FirstResponderKit.zip here. sp_Blitz Improvements #1281 We’ve lowered the priority of Query Store being disabled. It’s...
View Articlesp_BlitzQueryStore: A Gentle Introduction
Odds and ends During the precon, we asked how many people were on 2016, how many people were aware of query store, how many people were using it, and how many people were using sp_BlitzQueryStore....
View ArticleWhat Your SQL Server Is Really Waiting On: YOU
Land of Confusion Most SQL Servers out there have never had anyone do a thorough, targeted assessment on them, the way we do our Critical Cares. This leads to a lot of astray troubleshooting, which may...
View ArticleCan you prevent deletes and inserts without a WHERE clause from running?
File this under bad idea thong In the tradition of Klaus Aschenbrenner wanting to prevent people from writing SELECT * queries, I thought it might be nice to prevent people from running deletes or...
View ArticleIntroducing sp_BlitzLock: For Troubleshooting SQL Server Deadlocks
Deadlocks are hard Especially when there are a lot of them. When there are dozens or more, looking at each graph is a pain. I had a script written that parsed out the XML, but really, having a folder...
View ArticleSizing A New Server? Start With Maintenance.
Clientele Most of out customers are on slightly (ahem) older (AHEM) hardware, and they have big questions: How do we know what kind of hardware we need? How do we load test it? How do we know what to...
View ArticleHeaps, Deletes, and Optimistic Isolation Levels
The Humble Heap If you don’t know this by now, I’m going to shovel it at you: If you have a table with no clustered index (a Heap), and you delete rows from it, the resulting empty pages may not be...
View ArticleThe Perils Of VSS Snaps
So much, so often Ah, backups. Why are they so tough to get right? You start taking them, you find out you’re not taking enough of them, or that they’re not the right kind, or that you’re not using...
View ArticleAutomating Complacency
There’s no Latin word for Robot I’m all for automation, especially when it comes to the boring stuff. As awesome as the automation routines we have for that are, I still see people messing it up. Right...
View ArticleSQL Server 2017 CU3 adds execution statistics for scalar-valued, user-defined...
Estimated Plans Need Not Apply This is, of course, only available in actual plans. All together now: If a query uses one or more user-defined scalar functions (such as T-SQL functions or CLR...
View ArticleFirst Responder Kit Release: It’s Too Cold Not To Do A Release
You look just like a snake when you crawl like a worm. You can download the updated FirstResponderKit.zip here. sp_Blitz Improvements #1310: @CferMN reported quite an odd conversion error! Turns out,...
View ArticleSQL Server 2017 CU3 adds CXCONSUMER waits, doesn’t mention it
The revolution will not be documented At the PASS 2017, Pedro Lopes (don’t call him low-pez) from Microsoft mentioned that a new parallelism wait was getting added soon. That wait, if you’re too darn...
View ArticleSQL Server 2017 CU3 adds tempdb spill diagnostics in DMVs and Extended Events
Where have you been all my life? Whenever I’m teaching people about query tuning, two things come up almost without fail: parameter sniffing and tempdb spills. They’re not mutually exclusive — some...
View ArticleSQL Server 2017 CU3 adds optimizer row goal information in query plans
Row Whats? Like it or not, the optimizer has row goals. We’re not going to go terribly in-depth here, because the point is just to make you aware that this is in executions plans, and I’ll be adding it...
View Article[Video] The Junior DBA Workout Plan
Squat, deadlift, overhead press, and bench press. In the gym, it’s easy to figure out what you need to be doing to get stronger. When you show up to work, you’re overwhelmed by all the things happening...
View ArticleHow Much Can One Row Change A Plan, Part 3
All The Rage We’ve asked how much one column and even one row can change a plan before. The doctor says I’m not allowed to read blog comments anymore on account of my blood pressure, but the AI I wrote...
View ArticleHow Much Can One Row Change A Plan, Part 4
Monte Carlo Or Bust In Part 3, I showed you how two queries with TOP clauses can produce wildly different plans. To figure some stuff out about why the plans changed, let’s focus on the Nested Loops...
View Article