Starting SQL: Why Your SQL Server Query Can’t Go Parallel, Scalar Functions Edition

Yesterday we looked at where table variables can have a surprising! impact on performance. We’ll talk more about them later, because that’s not the only…

Read the post: Starting SQL: Why Your SQL Server Query Can’t Go Parallel, Scalar Functions Edition

Using Exchange Demand Partitioning to Improve Parallel Query Scalability In SQL Server

One of our SQL Server workloads runs many concurrent parallel queries on a possibly already busy server.

Read the post: Using Exchange Demand Partitioning to Improve Parallel Query Scalability In SQL Server

Quickly Detecting CPU and Memory Pressure On A SQL Server With sp_PressureDetector

There are lots of great options out there for figuring out what’s happening on a server. If you’re the kind of person still running sp_who, or sp_who2, or…

Read the post: Quickly Detecting CPU and Memory Pressure On A SQL Server With sp_PressureDetector

A Trick For Dealing With Table Variable Modification Performance Problems In SQL Server

One of the many current downsides of @table variables is that modifying them inhibits parallelism, which is a problem #temp tables don’t have.

Read the post: A Trick For Dealing With Table Variable Modification Performance Problems In SQL Server

The Difference Between Statistics Time And Plan Operator Times In SQL Server Query Plans

When you’re measuring query changes to see if your performance changes have made a difference, a common way to do that is to use STATISTICS TIME and IO.

Read the post: The Difference Between Statistics Time And Plan Operator Times In SQL Server Query Plans

A Trick For Working Around Scalar UDF Performance Issues In SQL Server

A scalar valued function in a query's select list forces the whole plan to run serially, and dumping the heavy query into a temp table first lets you apply…

Read the post: A Trick For Working Around Scalar UDF Performance Issues In SQL Server

SQL Server Query Plan Operators That Hide Performance Problems

When you’re reading query plans, you can be faced with an overwhelming amount of information, and some of it is only circumstantially helpful.

Read the post: SQL Server Query Plan Operators That Hide Performance Problems