Skip to content

Darling Data

AI Training for Database Teams and SQL Server Performance Tuning

Darling Data
  • Blog
    • Series
  • Training and Consulting
    • AI and Vector Search Services
    • SQL Server Health Check
    • Working Together
    • AI for Database Teams Workshop
    • SQL Server Training
    • SQL Server Consulting
    • AI Agents for SQL Server: The Guide
  • Scripts
    • sp_HealthParser
    • sp_HumanEvents
    • sp_HumanEventsBlockViewer
    • sp_IndexCleanup
    • sp_LogHunter
    • sp_PerfCheck
    • sp_PressureDetector
    • sp_QuickieStore
    • sp_QueryReproBuilder
    • sp_QueryStoreCleanup
    • Before You Ship That
  • Contact
    • About Me
    • Speaker Information
  • Monitoring
  • Planalyzer
  • Request a Call
  • Get the course

Category: Office Hours

Streaming Week: BIT obscene

Posted on July 28, 2020November 11, 2026 by Erik Darling

XML is unavoidable in SQL Server because query plans, extended events and maintenance plans all use it, while JSON support only arrived in 2016.

Read the post: Streaming Week: BIT obscene

Posted in Office Hours, SQL Server

Live SQL Server Q&A! (December 16, 2019)

Posted on December 16, 2019November 11, 2026 by Erik Darling

Use a bigint identity column instead of GUIDs, because you will not run out of bigints and GUIDs force awkward index choices.

Read the post: Live SQL Server Q&A! (December 16, 2019)

Posted in Office Hours, SQL Server

Live SQL Server Q&A! (October 17, 2019)

Posted on October 17, 2019November 11, 2026 by Erik Darling

In-memory OLTP is good for loading and modifying data fast without blocking, but adding RAM usually beats pinning tables and taking on the technical debt.

Read the post: Live SQL Server Q&A! (October 17, 2019)

Posted in Office Hours, SQL Server

Live SQL Server Q&A! (September 26, 2019)

Posted on September 26, 2019November 11, 2026 by Erik Darling

Version upgrades often make performance worse, and the new cardinality estimator is a frequent suspect, so test each query under both estimators.

Read the post: Live SQL Server Q&A! (September 26, 2019)

Posted in Office Hours, SQL Server

Live SQL Server Q&A! (September 19, 2019)

Posted on September 19, 2019November 11, 2026 by Erik Darling

There is one query plan but two versions of it: the pre-execution showplan (estimated) and the post-execution showplan, which carries actual metrics, wait…

Read the post: Live SQL Server Q&A! (September 19, 2019)

Posted in Office Hours, SQL Server

Live SQL Server Q&A! (September 12, 2019)

Posted on September 12, 2019November 11, 2026 by Erik Darling

Ten indexes on one table is not proof of a problem, and you should build a case from what the server records before asking anyone to change them.

Read the post: Live SQL Server Q&A! (September 12, 2019)

Posted in Office Hours, SQL Server

Live SQL Server Q&A! (September 5, 2019)

Posted on September 5, 2019November 11, 2026 by Erik Darling

The partitioning column must be in the index key if you want partition elimination, which is the only meaningful performance gain partitioning offers.

Read the post: Live SQL Server Q&A! (September 5, 2019)

Posted in Office Hours, SQL Server

Live SQL Server Q&A! (July 26, 2019)

Posted on July 26, 2019November 11, 2026 by Erik Darling

Table spools usually appear on the inner side of nested loops because SQL Server fears repeating work for duplicate outer values, often from non-sargable…

Read the post: Live SQL Server Q&A! (July 26, 2019)

Posted in SQL Server, Office Hours

Live SQL Server Q&A! (July 18, 2019)

Posted on July 18, 2019November 11, 2026 by Erik Darling

A large SQL optimizer memory clerk in sys.dm_os_memory_clerks means query memory grants are taking memory from the buffer pool, which is real memory…

Read the post: Live SQL Server Q&A! (July 18, 2019)

Posted in SQL Server, Office Hours

Live SQL Server Q&A! (July 11, 2019)

Posted on July 11, 2019November 11, 2026 by Erik Darling

Index audits should clear out dead weight before adding anything. I run sp_BlitzIndex in mode 0 or mode 4, drop unused indexes with heavy writes first…

Read the post: Live SQL Server Q&A! (July 11, 2019)

Posted in Office Hours, SQL Server2 Comments on Live SQL Server Q&A! (July 11, 2019)

Live SQL Server Q&A! (July 4, 2019)

Posted on July 4, 2019November 11, 2026 by Erik Darling

Sizing a SQL Server VM by core count alone causes both licensing waste and performance problems.

Read the post: Live SQL Server Q&A! (July 4, 2019)

Posted in Office Hours, SQL Server2 Comments on Live SQL Server Q&A! (July 4, 2019)

Live SQL Server Q&A! (June 27, 2019)

Posted on June 27, 2019November 11, 2026 by Erik Darling

Entity Framework queries select every column of every table, which produces memory grants of nine, 10 and sometimes 15 GB when only about 128 MB gets used.

Read the post: Live SQL Server Q&A! (June 27, 2019)

Posted in Office Hours, SQL Server

Live SQL Server Q&A! (June 13, 2019)

Posted on June 13, 2019November 11, 2026 by Erik Darling

SQL Server 2019 batch mode memory grant feedback, adaptive joins and scalar UDF inlining all need compatibility level 150, which also brings the new…

Read the post: Live SQL Server Q&A! (June 13, 2019)

Posted in Office Hours, SQL Server

Live SQL Server Q&A! (June 6, 2019)

Posted on June 6, 2019November 11, 2026 by Erik Darling

In-memory OLTP is not a drop-in replacement for temp tables, and I have seen it work only for very fast ingestion of short-lived data, such as online…

Read the post: Live SQL Server Q&A! (June 6, 2019)

Posted in SQL Server, Office Hours

Last Week’s Almost Definitely Not Office Hours: May 3

Posted on May 8, 2019November 11, 2026 by Erik Darling

Local variables in a WHERE clause cause row overestimates that can lead to page level locks, while OPTION (RECOMPILE) or a proper parameter gives the right…

Read the post: Last Week’s Almost Definitely Not Office Hours: May 3

Posted in Office Hours, SQL Server

Last Week’s Almost Definitely Not Office Hours: April 19

Posted on April 25, 2019October 22, 2026 by Erik Darling

Last week’s thrilling, stunning, flawless episode of whatever-you-wanna-call-it.

Read the post: Last Week’s Almost Definitely Not Office Hours: April 19

Posted in Office Hours, SQL Server

Last Week’s Almost Definitely Not Office Hours: April 12

Posted on April 18, 2019November 11, 2026 by Erik Darling

Lock pages in memory and a minimum server memory setting both cause trouble when a VM host is overcommitted and the memory balloon driver misbehaves.

Read the post: Last Week’s Almost Definitely Not Office Hours: April 12

Posted in Office Hours, SQL Server

Last Week’s Almost Definitely Not Office Hours: April 5

Posted on April 11, 2019November 11, 2026 by Erik Darling

Cascading foreign key actions without supporting indexes cause deadlocks, because each cascading delete hides a large clustered index scan.

Read the post: Last Week’s Almost Definitely Not Office Hours: April 5

Posted in Office Hours, SQL Server

Last Week’s Almost Definitely Not Office Hours: March 29

Posted on April 4, 2019October 22, 2026 by Erik Darling

Last Week’s Almost Definitely Not Office Hours: March 29: a SQL Server video lesson from Erik Darling of Darling Data.

Read the post: Last Week’s Almost Definitely Not Office Hours: March 29

Posted in Office Hours, SQL Server

Last Week’s Almost Definitely Not Office Hours: March 22

Posted on March 28, 2019November 11, 2026 by Erik Darling

An Enterprise Edition instance stuck at a 20 CPU limit has the wrong install media, and the fix is a SKU upgrade to the core-based licensing media, not an…

Read the post: Last Week’s Almost Definitely Not Office Hours: March 22

Posted in Office Hours, SQL Server

Last Week’s Almost Definitely Not Office Hours: March 15

Posted on March 21, 2019November 11, 2026 by Erik Darling

Eager index spools are the strongest sign of inadequate indexing, because SQL Server builds an index in the plan on every execution, single threaded.

Read the post: Last Week’s Almost Definitely Not Office Hours: March 15

Posted in Office Hours, SQL Server

Last Week’s Almost Definitely Not Office Hours: March 8

Posted on March 14, 2019October 22, 2026 by Erik Darling

Last week’s thrilling, stunning, flawless episode of whatever-you-wanna-call-it.

Read the post: Last Week’s Almost Definitely Not Office Hours: March 8

Posted in Office Hours, SQL Server

Last Week’s Almost Definitely Not Office Hours: March 1

Posted on March 7, 2019October 22, 2026 by Erik Darling

Last week’s thrilling, stunning, flawless episode of whatever-you-wanna-call-it.

Read the post: Last Week’s Almost Definitely Not Office Hours: March 1

Posted in Office Hours, SQL Server

Last Week’s Almost Definitely Not Office Hours: February 22

Posted on February 28, 2019November 11, 2026 by Erik Darling

A query with a very long IN list can make the optimizer report that the query processor ran out of internal resources, and the fix is to load the values…

Read the post: Last Week’s Almost Definitely Not Office Hours: February 22

Posted in SQL Server, Office Hours

Join Me For Free SQL Server Q&A Every Friday At Noon!

Posted on February 21, 2019October 22, 2026 by Erik Darling

Every Friday at Noon EST, I answer your SQL Server questions live on YouTube.

Read the post: Join Me For Free SQL Server Q&A Every Friday At Noon!

Posted in Office Hours, SQL Server

Posts pagination

1 2 Older posts
Video courseThese days I have AI do the annoying stuff.

Work With Your Databases the Way I Do shows you how I set that up, one step at a time.

$500
Get the courseTeaching a whole team? One-day workshopWant a day one-on-one? Work with me for a day
Get new posts by email

Plus a free copy of my book Great Post, Erik.

Your team is already using AI tools.

I'll teach them to work with your databases the way I do.

One-day workshop, on-site or remote.

Upcoming Events 2027:
Boston AI Workshop: Burlington, MA April 9

Copyright © 2019-2026 Darling Data

Learn

  • Video course
  • Team workshop
  • One-on-one day
  • SQL Server training
  • Blog
  • Blog series

Consulting

  • SQL Server consulting
  • Health Check
  • AI and vector search
  • Request a call

Free tools

  • Performance Monitor
  • Performance Studio
  • Planalyzer
  • Before You Ship That
  • Scripts on GitHub

Darling Data

  • About
  • Speaker information
  • Contact
  • Privacy policy
  • Add to favorites on Google
YouTubeGitHubLinkedInBlueskyXTikTok

Copyright © 2019-2026 Darling Data