SQL Server

Best approaches for grouped running totals

I follow up on a running totals post with an article describing different ways to achieve the same types of results for more complex grouping and aggregation.

No, you can't trust IDENT_CURRENT

I demonstrate how IDENT_CURRENT cannot be relied upon for reporting your new IDENTITY value, even under SERIALIZABLE.

Justifying the new Mac Pro

I explained how I justified purchasing a new Mac Pro, and show that it is very tough to order a comparable PC at similar price points.

Performance surprises: DATEDIFF

I investigate a case where two different methods of deriving an inline constant can lead to very different cardinality estimates.

Another argument for stored procedures

I talk about a subtle way that ad hoc queries can interfere with SQL Server performance by taking up more space in the plan cache than they really need.

Schema Switch-A-Roo: Part 2

I go into a little more detail about what happens to metadata when you use schema transfers behind the scenes.

Potential enhancements to ASPState

I talk about some potential inefficiencies here that you might not notice on low volume sites but that will start to affect performance as your web volume ramps up.

Minimize the impact of DBCC CHECKDB

I discuss several aspects of DBCC CHECKDB and offer suggestions to minimize the impact this crucial operation can have.

Trimming time from datetime – a follow-up

I follow up on an earlier post about trimming time from datetime, this time examining the performance characteristics of various methods without data access.

Is the sp_ prefix still a no-no?

I show several reasons why you should stop using the sp_ prefix on stored procedures in SQL Server, including a (minor) performance hit.