Thanks for watching my session on Tuning Indexes to Avoid Blocking.

Here are the demo scripts. If you want to play along with the demos, you’ll need the free Stack Overflow database.

Blocking Demo – Left Window

This session uses two windows – updates on the left, party in the back. Wait, that’s not right – updates on the left, selects on the right:

Blocking Demo – Right Window

Here we go:

Deadlocking Demo – Left Window

Deadlocking Demo – Right Window

Wanna learn more? We’ve got a whole bunch of locking, blocking, and deadlocking resources.