Quantcast
Browsing all 370 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

ColumnStore Indexes: Rowgroup Elimination and Parameter Sniffing In Stored...

Yazoo Over on his blog, fellow Query Plan aficionado Joe Obbish has a Great Post, Brent® about query patterns that qualify for Rowgroup Elimination. This is really important to performance! It allows...

View Article


An Expensive Reason To Avoid AGs In Azure

Cash Rules Most people, when they get through paying for Azure, and SQL Server Enterprise Licensing, are left with a hole in their wallet that could only be filled with something that says “Bugatti”,...

View Article


Image may be NSFW.
Clik here to view.

My Transaction Log File Is How Big?

How bizarre So there’s this funny thing about SQL Server: many units of measure boil down to 8k pages. That’s the size of a data page, so when you measure reads, or size, sometimes the only thing you...

View Article

First Responder Kit Release: Fully Hand Automated

Did you know there are more issues closed in this FRK than there are planets in this solar system? Special thanks to Pluto for making that statement possible, and all the other planets that didn’t...

View Article

Image may be NSFW.
Clik here to view.

How Much Can One Column Change A Query Plan? Part 1

Beyond Key Lookups I’m going to show you two queries, and two query plans. The two queries are only different by one selected column, but the two query plans are wildly different. Unless I’ve talked to...

View Article


Image may be NSFW.
Clik here to view.

How Much Can One Column Change A Query Plan? Part 2

What happened in Part 1? Join Elimination, naturally. Until the end. My copy of the Stack Overflow database doesn’t have a single foreign key in it, anywhere. If we go down the rabbit hole a couple...

View Article

Image may be NSFW.
Clik here to view.

Indexing for Windowing Functions: WHERE vs. OVER

Life Is Messy Demo queries have this nasty habit of being clean. Even using a pit of despair like Adventure Works or World Wide Importers, it’s easy to craft demo queries that fit the scenario you need...

View Article

Image may be NSFW.
Clik here to view.

Optional Parameters and Missing Index Requests

That’s when it all gets blown away At one point or another in everyone’s SQL-querying career, they end up writing a query that goes something like this: SELECT something FROM stuff WHERE (@thing1 is...

View Article


The Ghosts of Temp Tables Past

True story You may find it hard to believe, but I recently had to fix a small bug in sp_BlitzCache and sp_BlitzQueryStore. Since both stored procedures have similar functions, they also share some temp...

View Article


Image may be NSFW.
Clik here to view.

Answering Questions For Fun And No Profit

I love answering questions about SQL My forum of choice is dba.stackexchange.com because I find the voting and point system with badges for being a decent internet person addictive. If you like more...

View Article

Image may be NSFW.
Clik here to view.

Key Lookups and ColumnStore Indexes

Beavis v. Butthead I was a bit surprised that this was a possibility with ColumnStore indexes, since “keys” aren’t really their strong point, but since we’re now able to have both clustered ColumnStore...

View Article

Image may be NSFW.
Clik here to view.

Live Query Plans and Blocking

You’d think this would be cool After all, you’ve got a query plan being executed LIVE ON NATIONAL TELEVISION! But it’s not. It’s actually one of those weird reasons why you still need other ways of...

View Article

Image may be NSFW.
Clik here to view.

SQL Server 2017 Showplan Schema Is Available

File this under… Things probably only I care about. But the Showplan Schema for SQL Server 2017 popped up… well, I caught it last night. I probably could have written this sooner, huh? So what’s new?...

View Article


Image may be NSFW.
Clik here to view.

Adaptive Blog Posts

It turns out I can be dumb In a previous blog post about Adaptive Joins, I thought that EXISTS wasn’t supported by the new feature. It turns out that EXISTS is totally 100% supported, as long as your...

View Article

First Responder Kit Release: Still Totally Lacking A Servicing Model

A lot of people would think we’re crazy for releasing a FRK update a few days before a new version of SQL Server drops, but we’ve been adding 2017 compatible features for months Also none of you are on...

View Article


Image may be NSFW.
Clik here to view.

Do Variables Exist?

I know, I know I swore I’d never talk about variables again. Then I ran into some funny business. Maybe it was quite as funny as the Temp Table Ghosts, but hey. What’s as funny as temp tables? It’s in...

View Article

SQL Server Workarounds

360 Questions We’ve been asking you folks a lot about what you’d add to SQL Server, and we’ve gotten some great answers. There are even some that have been answered in the last couple versions of SQL...

View Article


First Responder Kit Release: Precon Precogs

This release comes to you from a hotel room in Chicago: The land of fiscal insolvency and one shooting per hour. It’s pretty nice, otherwise. This release is to get the pre-precon important stuff in....

View Article

Image may be NSFW.
Clik here to view.

Partitioned Views, Aggregates, and Cool Query Plans

The Max for the Minimum Paul White (obviously of course as always) has a Great Post, Brent® about Aggregates on partitioned tables Well, I’m not that smart or good looking, so I’ll have to settle for a...

View Article

Image may be NSFW.
Clik here to view.

Implied Predicate and Partition Elimination

>implying Way back when, I posted about turning the Votes table in the Stack Overflow database into a Partitioned View. While working on related demos recently, I came across something kind of cool....

View Article
Browsing all 370 articles
Browse latest View live