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.