Quantcast
Channel: SQL in the Wild
Browsing latest articles
Browse All 66 View Live

Image may be NSFW.
Clik here to view.

No, this is not a bug in T-SQL

(or, Column scope and binding order in subqueries) I keep seeing this in all sorts of places. People getting an unexpected result when working with a subquery, typically an IN subquery, and assuming...

View Article


In-line scalar functions in SQL Server 2019

Yes, yes, yes, finally! It’s hardly a secret that I’m not a fan of scalar user-defined functions. I refer to them as ‘developer pit-traps’ due to the amount of times I’ve seen developers absolutely...

View Article

Image may be NSFW.
Clik here to view.

A new way of getting the actual execution plan

Getting the actual execution plan, that is the plan with run-time statistics for a query from an application has always been a little difficult. It’s fine if you can get the query running in...

View Article

Books of 2019

I got sloppy with my book tracking this year, and completely stopped marking what I read on Goodreads part way through the year, hence no full list of what I read. The high points of the books read...

View Article

Pluralsight Free April

It’s a few days into April, but not too late I hope to mention that Pluralsight is offering their entire library, free to new accounts, for the month of April. Sign up on their promotion page to take...

View Article


Image may be NSFW.
Clik here to view.

On table variable row estimations

At first glance, the question of how many rows are estimated from a table variable is easy. But, is it really that simple? Well, not really. To dig into the why, first we need to identify why table...

View Article

The black pit of despair

The year’s been hell, I think most everyone agrees. For me, in addition to all the external problems, I’ve been fighting with depression ranging from bothersome to near-crippling. This is not advice,...

View Article

Image may be NSFW.
Clik here to view.

What is deferred compilation?

When I talked about row estimations for table variables, I mentioned ‘deferred compile’, but didn’t give a whole lot of details. What, then, is a deferred compilation? Let’s start with how batches...

View Article


Image may be NSFW.
Clik here to view.

Trust, but verify

Every year my company runs a graduate bootcamp, 2 months of teaching new grads what they need to know to write production-ready software. This post was inspired by something that happened during this...

View Article


Image may be NSFW.
Clik here to view.

All you need to know about Columnstore Indexes in one article

I realised the other week, that despite a bunch of posts on indexes over the years, I’ve never written a blog post on Columnstore indexes. Time to fix that. Here’s everything you need to know to get...

View Article
Browsing latest articles
Browse All 66 View Live