Skip to content

Commit f57bc29

Browse files
authored
Add 1252 and 8670 trace flags
Great thanks to @jobbish-sql
1 parent 334f9a2 commit f57bc29

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

SQL Server Trace Flag.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Microsoft SQL Server Trace Flags
2-
Detailed list of all discovered (documented and undocumented) Microsoft SQL Server trace flags (**618** trace flags).
2+
Detailed list of all discovered (documented and undocumented) Microsoft SQL Server trace flags (**620** trace flags).
33

44
**REMEMBER: Be extremely careful with trace flags, test in your development environment first.
55
And consult professionals first if you are the slightest uncertain about the effects of your changes.**
@@ -289,7 +289,7 @@ Use this trace flag if SQL Server is experiencing high number of [QDS_LOADDB](ht
289289

290290
<a id="trace-flags-list"></a>
291291
## Trace Flags List
292-
Summary: **618 trace flags**
292+
Summary: **620 trace flags**
293293

294294

295295
<a id="-1"></a>
@@ -1295,6 +1295,19 @@ Function: Allows the `ALTER PARTITION FUNCTION` statement to honor the current u
12951295
Link: https://support.microsoft.com/kb/4025261<br />
12961296
Link: [Docs Trace Flags]<br />
12971297
Scope: global or session or query
1298+
1299+
1300+
<a id="1252"></a>
1301+
#### Trace Flag: 1252
1302+
**Undocumented trace flag**<br />
1303+
Function: It prints some kind of lock related information when [3604](#3604) is also enabled. Example:
1304+
```
1305+
SELECT * FROM master..spt_values
1306+
OPTION (QUERYTRACEON 1252, QUERYTRACEON 3604);
1307+
```
1308+
<br />
1309+
Link: https://github.com/ktaranov/sqlserver-kit/issues/196<br />
1310+
Scope: ?
12981311

12991312

13001313
<a id="1260"></a>
@@ -4196,6 +4209,14 @@ Link: https://sql-sasquatch.blogspot.com/2018/12/fun-with-sql-server-plan-cache-
41964209
Link: [Fun with SQL Server Plan Cache, Trace Flag 8666, and Trace Flag 2388]<br />
41974210
Scope: global or session
41984211

4212+
4213+
<a id="8670"></a>
4214+
#### Trace Flag: 8670
4215+
**Undocumented trace flag**<br />
4216+
Function: Skip search 2 in plan?<br />
4217+
Link: [Query Optimizer Deep Dive - Part 4]<br />
4218+
Scope: ?
4219+
41994220

42004221
<a id="8671"></a>
42014222
#### Trace Flag: 8671

0 commit comments

Comments
 (0)