Chapter 9. Transactions and Concurrency

This chapter covers transactions and their properties and describes how Microsoft SQL Server handles users who are concurrently trying to access the same data. I explain how SQL Server uses locks to isolate inconsistent data, how you can troubleshoot blocking situations, and how you can control the level of consistency when you are querying data with isolation levels. This chapter also covers deadlocks and ways to mitigate their occurrence.

Transactions

A transaction is a unit of work that might include multiple activities that query and modify data and that can also change data definition.

You can define transaction boundaries either explicitly or implicitly. You define the beginning of a transaction explicitly ...

Get Microsoft® SQL Server® 2012 T-SQL Fundamentals now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.