Why the Version Store won't clear if any database has open transactions

Erik Darling (Erik Darling Data)
727 views •

In this video, I delve into the intricacies of why the version store in SQL Server won't clear if any database has open transactions, a topic that can leave many scratching their heads. I break down the explanation behind this behavior, emphasizing that SQL Server, designed by very smart people, anticipates the unpredictable nature of transactions, especially those that might span multiple databases. I walk through several queries and demonstrate how transactions in snapshot isolation can affect the version store, illustrating the importance of understanding these concepts to effectively manage your databases. Whether you're a seasoned SQL Server professional or just starting out, this video provides valuable insights into the inner workings of SQL Server's version store and how it handles transactions across databases. CHAPTERS 00:00:00 - Introduction 00:01:32 - Video Description and Links 00:03:15 - The Version Store and Open Transactions 00:05:32 - Explanation and Transaction Management 00:08:45 - Cleanup Watermark and Transaction Rollback 00:10:00 - Conclusion ━━━━━━━━━━━━━━━━━━━━━━━━━━ 🕵️‍♂️ FREE SQL SERVER MONITORING & Plan Analysis ━━━━━━━━━━━━━━━━━━━━━━━━━━ https://github.com/erikdarlingdata/PerformanceMonitor https://github.com/erikdarlingdata/PerformanceStudio https://plans.erikdarling.com/ ━━━━━━━━━━━━━━━━━━━━━━━━━━ 📚 TRAINING & COURSES ━━━━━━━━━━━━━━━━━━━━━━━━━━ Get AI-Ready With Erik https://training.erikdarling.com/get-ai-ready-with-erik?coupon=AIREADY SQL Server Performance Engineering Course https://training.erikdarling.com/sql-server-performance-engineering?coupon=ENGINEERING Learn T-SQL with Erik https://training.erikdarling.com/learn-t-sql-with-erik?coupon=ADVANCEDTSQL Everything Bundle: https://training.erikdarling.com/?coupon=SPRINGCLEANING ━━━━━━━━━━━━━━━━━━━━━━━━━━ 🛠️ CONSULTING & SERVICES ━━━━━━━━━━━━━━━━━━━━━━━━━━ Need SQL Server performance help? https://training.erikdarling.com/sqlconsulting ━━━━━━━━━━━━━━━━━━━━━━━━━━ 💬 CONNECT ━━━━━━━━━━━━━━━━━━━━━━━━━━ Ask questions at Office Hours https://erikdarling.com/officehours/ Become a channel member https://www.youtube.com/@ErikDarlingData/join

Keyboard shortcuts

On. Switch them off if they collide with your assistive tools; ? still opens this sheet.

Go to

Press g then the letter.

  • gh Latest
  • gs Sources
  • gm Media
  • gv Videos
  • gp Podcasts
  • gc Calendar
  • gd Decoder
  • gz Dataviz
  • ga Datasets
  • gb Blog
  • gk Markets
  • gj Careers
  • gn Prompt Notebook

On this page

  • / Focus search, where there is one
  • t Back to top
  • ? This list
  • Esc Close