You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples/features/optimized-locking/transaction-id-locking/README.md
+25-5Lines changed: 25 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,22 +109,42 @@ FROM
109
109
dbo.TelemetryPacket;
110
110
```
111
111
112
+
The output is similar to the following, except to the values in PageId column.
113
+
114
+
| PageId | PacketID | Device |
115
+
| ----------- | --------- | --------- |
116
+
| (1:2456:0) | 1 | Something |
117
+
| (1:2457:0) | 2 | Something |
118
+
| (1:2458:0) | 3 | Something |
119
+
112
120
The values shown in the PageId column represent the physical location of the data.
113
121
114
122
Let's look at the row where PacketID equals 1.
115
123
116
-
The value (1:XXXX:0) in the PageId column is composed of three parts separated by ":". Here is what each part represents:
124
+
The value (1:2456:0) in the PageId column is composed of three parts separated by ":". Here is what each part represents:
117
125
- 1 is the numeric identifier of the database file (file number) where the page is located
118
-
-XXXX is the page number inside file 1 of the database
126
+
-2456 is the page number inside file 1 of the database
119
127
- 0 is the slot number
120
128
121
-
Use the `DBCC PAGE` command to inspect the TID of page XXXX.
129
+
Use the `DBCC PAGE` command to inspect the TID of page 2456.
130
+
131
+
```sql
132
+
DBCC PAGE ('OptimizedLocking', 1, 2456, 3);
133
+
```
134
+
135
+
The value of the unique transaction identifier (TID) that modified the row with PacketID equal to 1 is in the **Version Information** section, under the **Transaction Timestamp** attribute, as shown in the following sample data.
The value of the unique transaction identifier (TID) that modified the row with PacketID equal to 1 is in the Version Information section, under the Transaction Timestamp attribute.
147
+
TID 985 represents the identifier of the transaction that inserted the rows; every subsequent change to the table rows will update the TID.
0 commit comments