Skip to main content

Transactions, Locking, Blocking, and Deadlocking

  • Chapter
  • 805 Accesses

Abstract

In the last two chapters, I covered DataModification Language and provided recipes for SELECT, INSERT, UPDATE, and DELETE statements. Beforemoving on to Data Definition Language (creating/altering/dropping tables, indexes, views, andmore), in this chapter I’ll review recipes for handling transactions, lockmonitoring, blocking, and deadlocking. I’ll review the new SQL Server 2008 table option that allows you to disable lock escalation or enable it for a partitioned table. I’ll demonstrate the snapshot isolation level, as well as DynamicManagement Views that are used tomonitor and troubleshoot blocking and locking.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints and permissions

Copyright information

© 2008 Joseph Sack

About this chapter

Cite this chapter

(2008). Transactions, Locking, Blocking, and Deadlocking. In: SQL Server 2008 Transact-SQL Recipes. Apress. https://doi.org/10.1007/978-1-4302-0625-5_3

Download citation

Publish with us

Policies and ethics