Query Tuning Week: How to Start Troubleshooting a Slow Stored Procedure
I’m teaching our SQL Server Performance Tuning class out in Portland this week, so we’re running all performance posts this week. You can learn more about my upcoming classes here. When you need to...
View ArticleQuery Tuning Week: How to Start Troubleshooting Parameter Sniffing Issues
I’m teaching our SQL Server Performance Tuning class out in Portland this week, so we’re running all performance posts this week. You can learn more about my upcoming classes here. When a query is...
View ArticleQuestion From Office Hours: SQL Handle vs. Plan Handle
Great question! We recently added some columns to sp_BlitzCache to help you remove undesirable plans from the cache. Doing this will force SQL to come up with a new plan, or you know, just re-create...
View ArticleQuery Tuning Week: What’s the Difference Between Locking and Blocking and...
I’m teaching our SQL Server Performance Tuning class out in Portland this week, so we’re running all performance posts this week. You can learn more about my upcoming classes here. If Erik takes out a...
View ArticleQuery Tuning Week: How to Run sp_BlitzCache on a Single Query
I’m teaching our SQL Server Performance Tuning class out in Portland this week, so we’re running all performance posts this week. You can learn more about my upcoming classes here. The most popular way...
View ArticleBad Idea Jeans Week: Prevent the Use of the Database Engine Tuning Advisor
Every now and then, we put on our bad idea jeans in the company chat room and come up with something really ill-advised. We should probably bury these in the back yard, but…what fun would that be? Bad...
View ArticleBad Idea Jeans Week: Building a Fork Bomb in SQL Server
Somewhat different than a sex bomb, a fork bomb is a denial-of-service attack that just starts a process that replicates itself, thereby starting more and more processes until the service goes down....
View ArticleBad Idea Jeans Week: Dynamically Generating Long Queries
As part of an experiment, I needed to build a really long query. (Don’t ask.) From another recent experiment, I know that SQL Server won’t let a query return more than 65,535 columns. I set about...
View ArticleBad Idea Jeans Week: Dynamically Generating 999 Indexes on a Table
Let’s say, just theoretically, you wanted to demo a query that takes SQL Server a long time to compile. And in order to make SQL Server’s job tougher, you wanted to create the maximum number of indexes...
View ArticleHow to Run DBCC CHECKDB on a Log Shipping Subscriber
At first glance, if you set up log shipping the way most folks do, it looks like you can’t run CHECKDB on a subscriber: Database cannot be opened. It is in the middle of a restore. Please close the...
View Article[Video] Office Hours 2016/08/24 (With Transcriptions)
Going to Seattle in October? Our 2-day class is almost full. Register now. This week, Richie and Erik discuss in-place instance upgrades, availability groups, the cloud, job security, business...
View ArticleLearn T-SQL with the StackOverflow Database
Background: a company came to us with a request: they had a lot of smart people who wanted to learn the basics of T-SQL in a day. Could we build an intro-to-T-SQL course that didn’t suck? Well, sure –...
View ArticleUpcoming SQL Server 2018 Features
If you think that’s big, you should see the size of the drink I happened to be in Seattle this week after finishing up an Alaska cruise, and I had the chance to sit down with some of the PMs...
View ArticleFirst 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...
View Article[Video] Office Hours 2016/08/31 (With Transcriptions)
This week, Brent, Richie, and Tara discuss corruption, resetting query stats, fixing parameter sniffing issues, how to suggest features for our scripts, and why Brent is sporting an Oracle sweatshirt....
View ArticleDBA Days: Money for Nothing, Chips for Free
Throwing hardware at it We gotta move these E5-2670 v3s These were just sitting around Dell. On a table. Not doing anything. They might have been broken; I’m not sure. But that’s not the point. The...
View ArticleDBA Days: Scripts from Downtime Train
ostress is so much fun It’s totally free to download and use as part of Microsoft’s RML Utilities. What else is in there? Stuff I’ve never used! I hear you can read trace files or something else...
View ArticleDBA Days: Chaos Sloth
I love a bad idea I mean, just look at me. I’m covered in them! So when Brent wanted to randomly make his server act crappy, I wrote a script for it. Usual caveats here. Don’t run this in production....
View ArticleDBA Days: Killing TempDB softly
Don’t make me regret publishing this This really will take a server down immediately. You can restart it, as we learned during DBA Days, but… If you also go ahead and make this an Agent job that runs...
View ArticleDBA Days: Pre-maintenance Window Rituals
Like a DBA batter’s box While we were hanging out in between webcasts at Dell, we got to talking about stuff we used to do before maintenance windows. Things that brought us good luck, warded off blue...
View Article