Sql-Server

Category: sql-server

Forced Plan Confusion: Is_Forced vs Use Plan = True

Forced Plan Confusion: Is_Forced vs Use Plan = True

Identifying that a query plan has been bossed around in Query Store can be a bit tricky, because it can appear in different ways.

Continue reading

When Should I Use Explicit Transactions for Single Statements?

When Should I Use Explicit Transactions for Single Statements?

on February 22, 2018

Category: tsql , sql-server

I got a great question about transactions by email recently about transactions.

Continue reading

New SQLChallenge: Defuse the Deadlock

New SQLChallenge: Defuse the Deadlock

When I first created SQLWorkbooks, I distilled what it was all about down into one sentence: “Learn SQL Server by Solving Problems.”

This month, I introduce my first SQLChallenge, which distills that down into practice. The SQLChallenge features 23 minutes of video with scripts that you can use to reproduce and solve the problem yourself.

Continue reading

When Were Statistics Last Updated for a Heap?

When Were Statistics Last Updated for a Heap?

on February 16, 2018

I got a question last week from a very smart fellow:

How can I tell when statistics were last updated for a heap?

Before I could email him back, I soon got another email in which he answered his own question.

Continue reading

Does a Clustered Index Give a Default Ordering?

Does a Clustered Index Give a Default Ordering?

By Kendra Little on February 2, 2018

I recently got a great question: if I order by a column where all rows in that column have the same value, will SQL Server then order the results by the clustered index key?

Continue reading

Watch my live session: When Partitioning Indexes Hurts Performance  (and How to Fix It)

Watch my live session: When Partitioning Indexes Hurts Performance (and How to Fix It)

on January 25, 2018

I’m very that my session on table partitioning from the 2017 SQL PASS Summit is being featured as one of the “Best of Summit” videos.

I had a terrific time presenting this session, thanks to everyone in the audience: you were awesome!

You can watch the video here, and follow the link above to see even more great videos from the conference for free.

Continue reading