Quantcast
Channel: Erik Darling – Brent Ozar Unlimited®
Browsing all 370 articles
Browse latest View live

First Responder Kit Release: We hired Brent back because he promised to fix...

March comes in like a 40 of Steel Reserve and leaves like your memory of the night after drinking a 40 of Steel Reserve. Get it here! sp_Blitz Improvements — #758 and #756 We made it less scary to run...

View Article


Image may be NSFW.
Clik here to view.

From The Mailbag: DBCC CHECKDB And Read Only Databases

We got an email!!! It was weird. It was from an Australian, and it was right side up. I could hardly believe it. Normally we encourage people to ask us questions during Office Hours, or over on Stack...

View Article


This Is Your Backup Schedule On Drugs

I’ve seen things Terrible things. I mean, not just working here (which, as I write this, I’m three days away from the two year mark, fingers crossed!), but also out there on the internet. Once you...

View Article

Image may be NSFW.
Clik here to view.

CTEs, Views, and NOLOCK

Registration is open now for the next free GroupBy conference: columnstore, Query Store, and hacking SQL Server. This is a post because it surprised me It might also save you some time, if you’re the...

View Article

Image may be NSFW.
Clik here to view.

Decrypting Insert Query Plans

Registration is open now for the next free GroupBy conference: columnstore, Query Store, and hacking SQL Server. We’ve all been there Staring at a simple query that has a three mile long execution...

View Article


First Responder Kit Release: Now With 100% More Working Code Than The Irish...

Every April I think about this girl I grew up with named April who smelled like Cheez-Wiz. She died tragically in a home for the blind on Taco Tuesday. Special thanks to @jeffrosenberg , @mrthomsmith ,...

View Article

Image may be NSFW.
Clik here to view.

Fun With Logging Dynamic SQL

While working on a demo I thought this might make a fun aside to share on the blog, because working with dynamic SQL can be challenging. Especially if you don’t have a monitoring tool or application...

View Article

Replacing ISNULL In A WHERE Clause

I like blogging Really, I do. But sometimes I like a change of pace. Instead of blogging about this question, I posted it over on dba.stackexchange.com. Also, I thought it was an interesting question,...

View Article


Image may be NSFW.
Clik here to view.

Is it ever worth adding indexes to table variables?

Disclaimer I found this totally by accident, and it even surprised me. You can probably guess the TL;DR on this is yes, huh? Dude, where’s my table variable? I was trying to come up with a demo for...

View Article


Image may be NSFW.
Clik here to view.

SQL Server vNext: Quick Rundown

ICYMI Playing with SSMS in the lab Microsoft released CTP 2 of SQL Server vNext (well, yesterday today, but who knows when this thing will hit?). There’s some great new stuff in the Engine in this...

View Article

Image may be NSFW.
Clik here to view.

SQL Server 2017: Unpublished Gems

Sneaky, sneaky, sneaky Release notes never seem to tell the full story, do they? At some point, you have to take matters into your own hands and go hunting for, as Paul Harvey would say, “The Rest Of...

View Article

Image may be NSFW.
Clik here to view.

SQL Server vNext: query_store_wait_stats

The missing link Back when the Query Store first got announced, I was amazed. The amount of information it gathered and persisted between reboots was such a big improvement over the plan cache, plus...

View Article

Image may be NSFW.
Clik here to view.

Hold The FiIter: Startup Expression Predicates

Long distance information There was a rather interesting question posted on dba.stackexchange.com recently about CASE expression order of execution with an OR predicate. Mouthful, I know! When I saw...

View Article


Image may be NSFW.
Clik here to view.

SSMS 2017 Is Now Available For Download

If you’re into that sort of thing You can head over here to download it. I just got it installed, and I’ll be updating this post as I find stuff. In case you’re curious, this is a whole new install,...

View Article

Image may be NSFW.
Clik here to view.

Look Ma, Adaptive Joins

This probably won’t seem like a big deal soon But I just got the optimizer to pick an Adaptive Join! It took a few tries to figure out what would cause some guesswork to happen, but here it is. I hope...

View Article


Status Update On Query Plan Hash Bug

Not long ago I posted about a bugBlitzCache because Query Plan Hash in the XML was being truncated. Well, yesterday I got an email that Adam Machanic has never gotten (I kid, I kid). CLOSED AS FIXED...

View Article

First Responder Kit Release: Ça plane pour moi

Ah, May. Spring has sprung, and young people’s minds turn towards seasonal allergies. Special thanks to @digitalohm for the Differential Restore code and general sp_DatabaseRestore spiffiness. May you...

View Article


Image may be NSFW.
Clik here to view.

First Responder Kit Re-Release: The Hubris Of Titles

The Gods of the Copy Book Headings Frowned Upon Me So yesterday, I pushed out a new FRK. You could say I FRKed up, and you’d be right. Not so much See, before I push stuff to master, I do a round of...

View Article

Image may be NSFW.
Clik here to view.

The 2017 Adaptive Join Optimization Eats Bad TSQL For Breakfast

Cheeky If you thought that title sounded familiar, you sure were right. That’s called a classical reference. So here we are, three whole years later, and yet another improvement to the engine promises...

View Article

Image may be NSFW.
Clik here to view.

Anatomy Of An Adaptive Join

I don’t like it unless it’s brand new When new features drop, not everyone has time to jump on top of them and start looking at stuff. That’s what consultants with nothing better to do are for. I’ve...

View Article
Browsing all 370 articles
Browse latest View live