Quantcast
Channel: Brent Ozar Unlimited®
Browsing all 3153 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

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 Article


Image may be NSFW.
Clik here to view.

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


Image may be NSFW.
Clik here to view.

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

Image may be NSFW.
Clik here to view.

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

Image may be NSFW.
Clik here to view.

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


Image may be NSFW.
Clik here to view.

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

Image may be NSFW.
Clik here to view.

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

Image may be NSFW.
Clik here to view.

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


Image may be NSFW.
Clik here to view.

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


Image may be NSFW.
Clik here to view.

How 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

Image may be NSFW.
Clik here to view.

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

Image may be NSFW.
Clik here to view.

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

Image may be NSFW.
Clik here to view.

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


Image may be NSFW.
Clik here to view.

First 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

Image may be NSFW.
Clik here to view.

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


Image may be NSFW.
Clik here to view.

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

Image may be NSFW.
Clik here to view.

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


Image may be NSFW.
Clik here to view.

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

Image may be NSFW.
Clik here to view.

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

Image may be NSFW.
Clik here to view.

DBA 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
Browsing all 3153 articles
Browse latest View live