Posts by Brent Ozar

Brent Ozar Techorama 2018

Registration Open for My Upcoming Pre-Cons: Belgium, Dallas, Iceland, Israel, Miami, Orlando!

Company News
0
I’m hitting the road this spring. Here’s where to find me in person: SQLSaturday Iceland – Your First SQL Server Performance Tuning Class – March 16 – You’re stuck with a database server that’s not going fast enough. You have a hunch that the biggest bottleneck is inside the database server somewhere, but where? In this one-day…
Read More
Pocket Square

Updated First Responder Kit with Your January Code Resolutions

I have a sneaking suspicion that a bunch of you made New Year’s Resolutions to contribute to open source, because y’all got started with a bang this year. We’ve even got improvements from Microsoft folks for Azure Managed Instances! You can download the updated FirstResponderKit.zip here. sp_Blitz Changes Improvements: skipping checks on Azure SQL DB Managed…
Read More

Tuning Dynamic SQL by Hand with Short Circuits

T-SQL
7 Comments
When we think about building dynamic SQL, we usually think about a stored procedure like this that takes input parameters, builds a string, and then executes that string. Here’s a simple example: Transact-SQL CREATE OR ALTER PROC dbo.usp_SearchUsers @SearchDisplayName NVARCHAR(40) = NULL, @SearchLocation NVARCHAR(100) = NULL, @SearchReputation INT = NULL AS BEGIN DECLARE @StringToExecute NVARCHAR(4000);…
Read More
Fundamentals of Index Tuning

New Fundamentals of Index Tuning Course

Indexing
2 Comments
You’re a developer who needs to make your application go faster, and you don’t want to (or can’t!) change the queries. You’ve never been to an official training class, and your manager isn’t about to spring for travel. In my new Fundamentals of Index Tuning course, you’ll learn: How to design indexes for a query…
Read More

Wanna see Erik Darling as Freddie Mercury at #SQLbits?

SQLBits
7 Comments
Erik Darling is raising money for the Mercury Phoenix Trust, fighting AIDS worldwide to help save lives. If we raise $5,000, he’ll present his SQLbits indexing session dressed like Freddie Mercury: If I hit my goal on this, I'm gonna deliver my @SQLBits indexes session dressed like a proper Freddie. Working hard on my AY-YO.…
Read More
Brent Ozar Webcast

Upcoming Free Training Webcasts

Videos
2 Comments
Hey, wanna learn about SQL Server for free? Feb 7 – PASS Data Expert Series: PASS is taking the top-rated Summit 2018 recordings and replaying them live, for free, on a webcast. I’ll be in the chat room too, taking your questions. Register here, and the lineup includes: SSMS & T-SQL Tricks with Bob Pusateri…
Read More
Caution

How to Load Test a Database Application

Development
9 Comments
I stay in the nicest hotels It sounds really simple: Capture a bunch of production queries Replay those same queries over in a load test environment So what’s the big deal? Why is it so hard to find good guidance on how to pull this off? How hard can it be? Problem 1: many queries…
Read More