Skip to main content
  • Book
  • © 2018

Expert SQL Server Transactions and Locking

Concurrency Internals for SQL Server Practitioners

Apress
  • Helps you solve issues with blocking, deadlocks, and other concurrency issues in SQL Server systems

  • Assists you in building high-concurrency applications on a SQL Server foundation

  • Covers new technologies such as Azure SQL Database, In-Memory OLTP, and Columnstore Indexes

  • 14k Accesses

Buy it now

Buying options

eBook USD 49.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 64.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

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (14 chapters)

  1. Front Matter

    Pages i-xix
  2. Data Storage and Access Methods

    • Dmitri Korotkevitch
    Pages 1-24
  3. Transaction Management and Concurrency Models

    • Dmitri Korotkevitch
    Pages 25-46
  4. Lock Types

    • Dmitri Korotkevitch
    Pages 47-72
  5. Blocking in the System

    • Dmitri Korotkevitch
    Pages 73-107
  6. Deadlocks

    • Dmitri Korotkevitch
    Pages 109-136
  7. Optimistic Isolation Levels

    • Dmitri Korotkevitch
    Pages 137-157
  8. Lock Escalation

    • Dmitri Korotkevitch
    Pages 159-173
  9. Schema and Low-Priority Locks

    • Dmitri Korotkevitch
    Pages 175-189
  10. Lock Partitioning

    • Dmitri Korotkevitch
    Pages 191-201
  11. Application Locks

    • Dmitri Korotkevitch
    Pages 203-211
  12. Designing Transaction Strategies

    • Dmitri Korotkevitch
    Pages 213-223
  13. Troubleshooting Concurrency Issues

    • Dmitri Korotkevitch
    Pages 225-267
  14. In-Memory OLTP Concurrency Model

    • Dmitri Korotkevitch
    Pages 269-294
  15. Locking in Columnstore Indexes

    • Dmitri Korotkevitch
    Pages 295-311
  16. Back Matter

    Pages 313-320

About this book

Master SQL Server’s Concurrency Model so you can implement high-throughput systems that deliver transactional consistency to your application customers. This book explains how to troubleshoot and address blocking problems and deadlocks, and write code and design database schemas to minimize concurrency issues in the systems you develop.


SQL Server’s Concurrency Model is one of the least understood parts of the SQL Server Database Engine. Almost every SQL Server system experiences hard-to-explain concurrency and blocking issues, and it can be extremely confusing to solve those issues without a base of knowledge in the internals of the Engine. While confusing from the outside, the SQL Server Concurrency Model is based on several well-defined principles that are covered in this book.


Understanding the internals surrounding SQL Server’s Concurrency Model helps you build high-throughput systems in multi-user environments. This book guides you through the Concurrency Model and elaborates how SQL Server supports transactional consistency in the databases. The book covers all versions of SQL Server, including Microsoft Azure SQL Database, and it includes coverage of new technologies such as In-Memory OLTP and Columnstore Indexes.




What You'll Learn
  • Know how transaction isolation levels affect locking behavior and concurrency
  • Troubleshoot and address blocking issues and deadlocks
  • Provide required data consistency while minimizing concurrency issues
  • Design efficient transaction strategies that lead to scalable code
  • Reduce concurrency problems through good schema design
  • Understand concurrency models for In-Memory OLTP and Columnstore Indexes
  • Reduce blocking during index maintenance, batch data load, and similar tasks


Who This Book Is For


SQL Server developers, database administrators, and application architects who are developing highly-concurrent applications. The book is for anyone interested in the technical aspects of creating and troubleshooting high-throughput systems that respond swiftly to user requests.



Authors and Affiliations

  • Land O Lakes, USA

    Dmitri Korotkevitch

About the author

Dmitri Korotkevitch is a Microsoft Data Platform MVP and Microsoft Certified Master (SQL Server 2008) with many years of IT experience, including years of experience working with Microsoft SQL Server as Application and Database Developer, Database Administrator, and Database Architect. He specializes in the design, development, and performance tuning of complex OLTP systems that handle thousands of transactions per second around the clock. Currently, he works as Director of Database Services at Chewy.com and he provides SQL Server consulting services and training to clients around the world. Dmitri regularly speaks at various Microsoft and SQL PASS events.

Bibliographic Information

  • Book Title: Expert SQL Server Transactions and Locking

  • Book Subtitle: Concurrency Internals for SQL Server Practitioners

  • Authors: Dmitri Korotkevitch

  • DOI: https://doi.org/10.1007/978-1-4842-3957-5

  • Publisher: Apress Berkeley, CA

  • eBook Packages: Professional and Applied Computing, Professional and Applied Computing (R0), Apress Access Books

  • Copyright Information: Dmitri Korotkevitch 2018

  • Softcover ISBN: 978-1-4842-3956-8Published: 09 October 2018

  • eBook ISBN: 978-1-4842-3957-5Published: 08 October 2018

  • Edition Number: 1

  • Number of Pages: XIX, 320

  • Number of Illustrations: 144 b/w illustrations

  • Topics: Database Management

Buy it now

Buying options

eBook USD 49.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 64.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

Other ways to access