SQL Server

UNION and data type mismatches

Estimated data size as a result of implicit conversions can make a huge difference in the execution plan.

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.