SQL Server

Cleaning up the master database

We've all accidentally placed objects in master. In this tip, I show how you can clean it up a little.

Avoid ORDER BY in views

I explain why you shouldn't bother adding ORDER BY to views in SQL Server.

Paying attention to estimates

I follow up on a recent post about DATEFROMPARTS() with a deeper look into the estimates and potential mitigation techniques.

Performance surprises: DATEADD

I explore yet another scenario where a date/time function seems to cause the optimizer to behave unexpectedly.

Pin the blame on the query

A recent Visual Studio outage has been largely blamed on the cardinality estimator, but I think the query itself has a share of the blame.

Widening an IDENTITY column – Part 1

As part of a new series, I take a look at what happens to the structure of a page when an INT column needs to be upsized to a BIGINT.