Skip to content

Commit 5f8d3d8

Browse files
committed
Simplify and enhance optimized-locking README.md
1 parent e4ddffc commit 5f8d3d8

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

  • samples/features/optimized-locking/transaction-id-locking

samples/features/optimized-locking/transaction-id-locking/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<!-- Always leave the MS logo -->
22
![](https://github.com/microsoft/sql-server-samples/blob/master/media/solutions-microsoft-logo-small.png)
33

4-
# SQL Server 2025 Optimized Locking: Transaction ID (TID) Locking internals
4+
# Optimized Locking: Transaction ID (TID) Locking internals
55

66
This sample describes how to read and interpret the Transaction ID stored in row data pages.
77

88
## Background
99

10-
Optimized Locking is a SQL Server 2025 database engine feature designed to reduce the memory used for lock management, decrease the phenomenon known as lock escalation, and increase workload concurrency.
10+
Optimized Locking is a database engine feature designed to reduce the memory used for lock management, decrease the phenomenon known as lock escalation, and increase workload concurrency.
1111

1212
Optimized Locking depends on two technologies that have long been part of the SQL Server engine:
1313
- [Accelerated Database Recovery (ADR)](https://learn.microsoft.com/sql/relational-databases/accelerated-database-recovery-concepts) is a required prerequisite for enabling Optimized Locking
@@ -27,7 +27,6 @@ The TID is stored on disk in the additional 14 bytes that are associated with ea
2727

2828
Every transaction that modifies a row, it tags that row with its own TID, so each row in the database is labeled with the last TID that modified it.
2929

30-
3130
### Contents
3231

3332
[About this sample](#about-this-sample)<br/>
@@ -41,7 +40,7 @@ Every transaction that modifies a row, it tags that row with its own TID, so eac
4140
## About this sample
4241

4342
- **Applies to:** SQL Server 2025 (or higher)
44-
- **Key features:** SQL Server 2025 Optimized Locking
43+
- **Key features:** Optimized Locking
4544
- **Workload:** No workload related to this sample
4645
- **Programming Language:** T-SQL
4746
- **Authors:** [Sergio Govoni](https://www.linkedin.com/in/sgovoni/) | [Microsoft MVP Profile](https://mvp.microsoft.com/mvp/profile/c7b770c0-3c9a-e411-93f2-9cb65495d3c4) | [Blog](https://segovoni.medium.com/) | [GitHub](https://github.com/segovoni) | [Twitter](https://twitter.com/segovoni)
@@ -60,9 +59,9 @@ To run this sample, you need the following prerequisites.
6059

6160
### Setup code
6261

63-
1. Download [create-configure-optimizedlocking-db.sql T-SQL script](sql-scripts) from sql-scripts folder
64-
2. Check if a database called OptimizedLocking does not exist in your SQL Server 2025 instance
65-
3. Execute create-configure-optimizedlocking-db.sql script on your SQL Server 2025 instance
62+
1. Download [create-configure-optimizedlocking-db.sql](sql-scripts) T-SQL script from sql-scripts folder
63+
2. Check if a database called OptimizedLocking does not exist in your SQL Server instance
64+
3. Execute create-configure-optimizedlocking-db.sql script on your SQL Server instance
6665
4. Run the commands described in the sample details section
6766

6867
<a name=sample-details></a>
@@ -138,6 +137,7 @@ The value of the unique transaction identifier (TID) that modified the row with
138137
Version Information =
139138
Transaction Timestamp: 985
140139
Version Pointer: Null
140+
141141
Slot 0 Column 1 Offset 0x4 Length 4 Length (physical) 4
142142
PacketID = 1
143143
Slot 0 Column 2 Offset 0x8 Length 8000 Length (physical) 8000

0 commit comments

Comments
 (0)