SQL Server

Using goal posts to reduce scan impact

Logging tables get huge, and date range queries get more if they don't use the clustered index. Here's one way I've addressed the issue.

On Cumulative Updates and GDRs

Using a fictitious future timeline, I explain how CUs and GDRs differ and why build number alone might not tell the whole story.

Find a string in some or all databases

In 2015, I wrote about a stored procedure to find strings within all tables across all user databases. In this follow-up tip, I enhance the procedure to optionally include views and search within specific databases.

Building DBML syntax from metadata

I show how to piece together portions of SQL Server metadata to generate DBML (which is more useful than it sounds).

String aggregation over the years

I talk about progress in aggregating strings – both in the functionality offered by SQL Server and the quality of my own code samples.

Mixed Extents Podcast: 2022.02.14

I was honored to be a guest on the most recent Mixed Extents podcast, along with my friend and colleague Andy Mallon, where we talked about patching SQL Server.

A handy search procedure

Updated this stored procedure I wrote a decade ago to search for a string in procedure bodies, object names, job steps, and more…

Bad Habits to Kick: Abusing bit columns

I talk a bit about bit columns: names with negative context, allowing NULLs, and using cryptic BITWISE operators instead of readable, self-documenting expressions.

Consolidating links and resources

I made some landing pages here, with simple and easy-to-remember URLs, presenting sets of links to very frequently-discussed topics around SQL Server.

SQL Server 2019 adventures on CentOS 7.5

After thinking setting up SQL Server 2019 on CentOS 7.5 was going to be a piece of cake, I explain how my team helped resolve a TLS issue preventing remote connections.