In last week's Query Exercise, I challenged you to play some code golf to generate big spills with tiny T-SQL. Today, I'm going to walk you through my thought process - the initial attempts I tried and failed with, and the discoveries I made…
In last week's Query Exercise, I challenged you to play some code golf to generate big spills with tiny T-SQL. Today, I'm going to walk you through my thought process - the initial attempts I tried and failed with, and the discoveries I made…
You work with Microsoft SQL Server, Azure SQL DB, and Amazon RDS SQL Server. When people call in saying the server is slow, you're the one who has to take the call. It's up to you to figure out the bottleneck, which queries are causing that…
You work with Microsoft SQL Server, Azure SQL DB, and Amazon RDS SQL Server. When people call in saying the server is slow, you're the one who has to take the call. It's up to you to figure out the bottleneck, which queries are causing that…
Ever wonder how big your database estate is compared to others? Whether you've got more servers, more databases, more workloads, or more problems? Well, if you're one of my SQL ConstantCare® customers, check your email: our first set of badges just…
Ever wonder how big your database estate is compared to others? Whether you've got more servers, more databases, more workloads, or more problems? Well, if you're one of my SQL ConstantCare® customers, check your email: our first set of badges just…
Nah, not necessarily. SQL Server's query optimizer behavior keeps changing with every freakin' version. Let's illustrate it with a simple query against the Stack Overflow Users table: CREATE INDEX Location ON dbo.Users(Location); GO SELECT COUNT(*)…
Nah, not necessarily. SQL Server's query optimizer behavior keeps changing with every freakin' version. Let's illustrate it with a simple query against the Stack Overflow Users table: CREATE INDEX Location ON dbo.Users(Location); GO SELECT COUNT(*)…
When I was testing SQL Server 2025's new ability to limit TempDB usage with Resource Governor, I wrote a few fun diabolical demos. One of them was to generate giant spills to TempDB, quickly. When you're looking at an actual (not estimated) query plan, and…
When I was testing SQL Server 2025's new ability to limit TempDB usage with Resource Governor, I wrote a few fun diabolical demos. One of them was to generate giant spills to TempDB, quickly. When you're looking at an actual (not estimated) query plan, and…
Today marks the official birthday of Microsoft SQL Server 2025. Here's where to download the evaluation version. Here are the top things you wanna consider as you talk to your managers, developers, and end users. The feature…
Today marks the official birthday of Microsoft SQL Server 2025. Here's where to download the evaluation version. Here are the top things you wanna consider as you talk to your managers, developers, and end users. The feature…
I love SQL Server, and I'm excited for the release of 2025. I think the query processing keeps getting better, which means your apps are gonna go faster, with less code changes. The AI stuff is a little fluffy, and I don't think time will be kind to…
I love SQL Server, and I'm excited for the release of 2025. I think the query processing keeps getting better, which means your apps are gonna go faster, with less code changes. The AI stuff is a little fluffy, and I don't think time will be kind to…
SQL Server 2025 and .NET 10 bring several new improvements to storing JSON natively in the database and querying it quickly. On the SQL Server 2025 side, the two big ones are the new native JSON indexes and the new JSON_CONTAINS…
SQL Server 2025 and .NET 10 bring several new improvements to storing JSON natively in the database and querying it quickly. On the SQL Server 2025 side, the two big ones are the new native JSON indexes and the new JSON_CONTAINS…