Simplify your date range calculations when trying to find events that overlap (or don't).
Category: SQL Server
I provide my deck and demos for a GroupBy presentation on SQL Server 2019, and make up for some serious demo disasters.
I share my slides and demos from sessions at SQLintersection in Las Vegas.
Microsoft has pulled several patches for older versions of SQL Server. If you need TLS 1.2 support on an unsupported version, your recourse is to contact Microsoft support.
Some additional details about this sp_MSforeachdb (and sp_foreachdb) replacement.
I talk about the top 10 wait types observed among SentryOne customers, and where to turn when you experience one of them on your own system.
This replacement for sp_foreachdb makes even more improvements over the original system procedure, sp_MSforeachdb.
I show that, in some cases, INSTEAD OF triggers can be better for performance than AFTER triggers.
I talk about the pros and cons of letting SQL Server wait to get a more accurate cardinality estimate from a table variable.
I discuss a queue table for DDL notifications instead of handling them within a DDL trigger.
This tip was refreshed with status updates for some of the critical bugs discovered in MERGE over the years.
SQL Server will gladly tell you about missing indexes, but it may not give you the keys in the right order.
GDPR is a big deal for a lot of us; in this tip I explain how you might want to deal with "forget me" requests.
I show how to denormalize data using FOR XML PATH and STRING_AGG, and explain which one is faster.
Privacy laws are going to make us all much more careful about how we handle data archival and purge processes.
I show how to enable, disable, drop, and re-create all triggers in a database using dynamic SQL.
Estimated data size as a result of implicit conversions can make a huge difference in the execution plan. SentryOne Plan Explorer lets you spot it early.
In this tip, I talk about a slightly more flexible way to simulate TRY_CONVERT() on unsupported versions of SQL Server.
If you are still stuck on an unsupported version of SQL Server, there may still be a way for you to have TRY_CONVERT() functionality.
Check this list for possible problems if you have trouble connecting using the Dedicated Administrator Connection.