Blogs

Batch Mode Hacks for Rowstore Queries in SQL Server

Batch Mode Hacks for Rowstore Queries in SQL Server

By Kendra Little on May 11, 2017 • 4 min read

What’s batch mode?

Batch mode was introduced as a way to help SQL Server process data from columnstore indexes faster. The whole idea with columnstore is that you pull big compressed sets of rows out for aggregation or other operations in big chunks.

Batch mode is a way that operators can work on a “batch” of up to 900 values at a time, instead of working on individual rows. Batch mode can reduce the overhead of metadata and make more efficient use of your CPUs.

Continue reading

New Course! Query Tuning with Hints & Optimizer Hotfixes

New Course! Query Tuning with Hints & Optimizer Hotfixes

on May 10, 2017 • 1 min read

Want to up your query tuning game? For a limited time, you can snag a free enrollment to the new course, Query Tuning with Hints & Optimizer Hotfixes.

About the Course

Learn the pros and cons of using hints and optimizer hotfixes in SQL Server, and see how hints can give you insight into the optimization process. Sorry, this free giveaway has ended.

Continue reading

SQLServer:Databases(_Total)\Transactions/sec vs SQL Statistics\Batch Requests/sec (video)

SQLServer:Databases(_Total)\Transactions/sec vs SQL Statistics\Batch Requests/sec (video)

on May 8, 2017 • 1 min read

Perfmon counters are great for measuring workload, but choosing which counter to baseline can be confusing.

Continue reading

Should I Get Certified as a DBA? (Dear SQL DBA Episode 41)

Should I Get Certified as a DBA? (Dear SQL DBA Episode 41)

on May 4, 2017 • 1 min read

Find out if getting certified will help you land an entry level DBA job. If you do want to get certified, get Kendra’s tips on preparing for the exam in this 17 minute episode.

Continue reading

Checking for the Existence of Global Temp Table in TSQL

Checking for the Existence of Global Temp Table in TSQL

By Kendra Little on May 3, 2017 • 1 min read

Every now and again, I need use a global temporary table for some testing or demo code.

Each time I do, I stumble a little bit when it comes to checking for the existence of the global temp table, in order to make my code re-runnable.

Continue reading

Use Report View in Perfmon to Compare Database Counters (free video)

Use Report View in Perfmon to Compare Database Counters (free video)

on May 1, 2017 • 1 min read

Category: perfmon , sql-server

Sometimes you need to compare lots of counters at once - for example, counters that report at the database level. This can be frustrating in “Line” view, but the “Report” view in perfmon makes life much simpler.

Continue reading

How Does a DBA Build Confidence After Making Mistakes? (Dear SQL DBA Episode 40)

How Does a DBA Build Confidence After Making Mistakes? (Dear SQL DBA Episode 40)

on April 27, 2017 • 1 min read

Ever had a database change go horribly wrong? It can feel awful in the moment, then eat away at your confidence for days afterward.

In this 20 minute episode, I give you practical steps that help you cope with change over the course of your DBA career.

Continue reading