Blogs

Which Locks Count Toward Lock Escalation?

Which Locks Count Toward Lock Escalation?

on April 3, 2017 • 6 min read

Category: locking , sql-server

A little while back I wrote about Why Indexes Reduce Locks for Update and Delete Queries.

I got a great question on the post from Zac:

What’s not super clear is why it takes out a lock on the whole table, is this because it does a lock escalation as a result of the Full Scan? Will this always happen, or is there a threshold of record update counts where this will occur?

This was tough to answer in just a comment, so I promised a full post on the topic.

Continue reading

Why is My Transaction Log Growing in My Availability Group? (Dear SQL DBA Episode 36)

Why is My Transaction Log Growing in My Availability Group? (Dear SQL DBA Episode 36)

A database transaction log is expanding, even though the DBA is running log backups and doesn’t see an open transaction? What’s going on with this Availability Group?

Continue reading

The Case of the Blocking Online Index Create- the Shared Lock that Would Not Quit

The Case of the Blocking Online Index Create- the Shared Lock that Would Not Quit

on March 28, 2017 • 4 min read

I recently got an interesting question from a reader about running a CREATE INDEX statement with DROP_EXISTING

Continue reading

New weekly newsletter: a SQL Server quiz, poll or cartoon each week

New weekly newsletter: a SQL Server quiz, poll or cartoon each week

on March 27, 2017 • 1 min read

I’ve started up a weekly newsletter! Sign up, and each Tuesday you’ll get a link to a quick SQL Server quiz or poll in your inbox. Most weeks there will be a cartoon thrown in there, too.

Continue reading

New Freebie Course: SSMS Shortcuts & Secrets

New Freebie Course: SSMS Shortcuts & Secrets

on March 23, 2017 • 2 min read

SQL Server Management Studio is so full of tiny buttons and options that it can be easy to miss out on secrets that could make your life easier and more fun.

I’ve got a new online course that shows you my favorite secret tricks and goodies in SSMS!.

Continue reading

When SQL Server Does NOT Use Write Ahead Logging (Dear SQL DBA Episode 35)

When SQL Server Does NOT Use Write Ahead Logging (Dear SQL DBA Episode 35)

on March 23, 2017 • 1 min read

A few episodes ago, I talked about how learning about Write Ahead Logging was a light bulb moment for me, and helped me learn tons of concepts about backups and recovery.

This week, we talk about when SQL Server turns things upside down and doesn’t use write ahead logging: and what it has to do for recovery in these special cases.

Continue reading

Columnstore Index Returns Zero Rows... Which is One Row

Columnstore Index Returns Zero Rows... Which is One Row

By Kendra Little on March 21, 2017 • 3 min read

I’ve never claimed to be great at math, but until recently I thought I knew how to count to one. Zero… one. That’s what we learned in kindergarten.

Apparently SQL Server didn’t go to kindergarten.

Continue reading