Skip to content

Commit d2a1b36

Browse files
committed
Add new trace flag 9448, update some info
Great thanks jobbish https://www.sqlservercentral.com/Forums/FindPost1911028.aspx
1 parent bbea428 commit d2a1b36

File tree

2 files changed

+23
-8
lines changed

2 files changed

+23
-8
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Headers:
5050
- [SQL Server Name Convention and T-SQL Programming Style](/SQL%20Server%20Name%20Convention%20and%20T-SQL%20Programming%20Style.md)
5151
- [SQL Server Licensing](/SQL%20Server%20Licensing.md)
5252
- [SQL Server People](/SQL%20Server%20People.md 'Most Valuable SQL Server professionals')
53-
- [SQL Server Trace Flag](/SQL%20Server%20Trace%20Flag.md 'Complete list - 528 Trace Flags') (**Complete list - 528 trace flags**)
53+
- [SQL Server Trace Flag](/SQL%20Server%20Trace%20Flag.md 'Complete list - 529 Trace Flags') (**Complete list - 529 trace flags**)
5454
- [SQL Server Version](/SQL%20Server%20Version.md 'List of all Microsoft SQL Sever versions') (**Complete list - from SQL Server 1.0 to SQL Server 2017**)
5555
- [Articles](/Articles)
5656
- [CLR procedures](/CLR)
@@ -320,7 +320,8 @@ Headers:
320320
- [Minion CheckDB - completes the MinionWare maintenance and backups suite](http://minionware.net/checkdb/) (by Minionware)
321321
- [Minion Reindex - Index maintenance that is fully automated](http://minionware.net/reindex/) (by Minionware)
322322
- [OrcaMDF - C# parser for MDF files](https://github.com/improvedk/OrcaMDF) (by Mark S. Rasmussen)
323-
- [Microsoft SQL Server Zabbix templates](https://share.zabbix.com/databases/microsoft-sql-server)
323+
- [Microsoft SQL Server Zabbix templates](https://share.zabbix.com/databases/microsoft-sql-server)
324+
- [Telegraf SQL Server Plugin](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/sqlserver) (by influxdata)
324325

325326
[*Back to top*](#header02)
326327

SQL Server Trace Flag.md

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Microsoft SQL Server Trace Flags
2-
Complete list of Microsoft SQL Server trace flags (528 trace flags)
2+
Complete list of Microsoft SQL Server trace flags (529 trace flags)
33

44
**REMEMBER: Be extremely careful with trace flags, test in your test environment first. And consult professionals first if you are the slightest uncertain about the effects of your changes.**
55
**Trace flag behavior may not be supported in future releases of SQL Server.**
@@ -64,6 +64,8 @@ Trace Flags are settings that in some way or another alters the behavior of vari
6464

6565
<a id="how-do-i-know-what-trace-flags-are-turned-on-at-the-moment"></a>
6666
## How do I know what Trace Flags are turned on at the moment?
67+
From SSMS 16 every sql plan content information about trace flags in section `Trace flags`
68+
6769
You can use the [DBCC TRACESTATUS](https://docs.microsoft.com/en-us/sql/t-sql/database-console-commands/dbcc-tracestatus-transact-sql "Microsoft Docs DBCC TRACESTATUS") command
6870

6971
The following example displays the status of all trace flags that are currently enabled globally:
@@ -558,11 +560,12 @@ Link: None
558560
<a id="692"></a>
559561
#### Trace Flag: 692
560562
Function: Disables fast inserts while bulk loading data into heap or clustered index.
561-
Starting SQL Server 2016, fast inserts is enabled by default leveraging minimal logging when database is in simple or bulk logged recovery model to optimize insert performance for records inserted into new pages. With fast inserts, each bulk load batch acquires new extent(s) bypassing the allocation lookup for existing extent with available free space to optimize insert performance.
562-
With fast inserts, bulk loads with small batch sizes can lead to increased unused space consumed by objects hence it is recommended to use large batchsize for each batch to fill the extent completely. If increasing batchsize is not feasible, this trace flag can help reduce unused space reserved at the expense of performance.<br />
563+
Starting SQL Server 2016, fast inserts is enabled by default leveraging minimal logging when database is in simple or bulk logged recovery model to optimize insert performance for records inserted into new pages.
564+
With fast inserts, each bulk load batch acquires new extent(s) bypassing the allocation lookup for existing extent with available free space to optimize insert performance.
565+
With fast inserts, bulk loads with small batch sizes can lead to increased unused space consumed by objects hence it is recommended to use large batch size for each batch to fill the extent completely.
566+
If increasing batch size is not feasible, this trace flag can help reduce unused space reserved at the expense of performance.<br />
563567
**Note: This trace flag applies to SQL Server 2016 RTM and higher builds.**
564568
Link: https://blogs.msdn.microsoft.com/sql_server_team/sql-server-2016-minimal-logging-and-impact-of-the-batchsize-in-bulk-load-operations/<br />
565-
Link: <br />
566569
Scope: global or session
567570

568571

@@ -2421,9 +2424,13 @@ Link: https://support.microsoft.com/en-us/help/958006/fix-the-size-of-the-sql-se
24212424

24222425
<a id="4134"></a>
24232426
#### Trace Flag: 4134
2424-
Function: Bugfix for error: parallel query returning different results every time<br />
2427+
Function: Bugfix for error: parallel query returning different results every time
2428+
The trace flag disables an optimization in the query optimizer.
2429+
The optimization caused the issue described in the KB article when you try to insert into a table by selecting from the table itself.
2430+
As turning on the trace flag could result in a perf degradation, you only should use it if you run into the issue described in the KB article.<br />
24252431
Link: http://support.microsoft.com/kb/2546901<br />
2426-
Link: http://sql-sasquatch.blogspot.se/2014/04/whaddayaknow-bout-sqlserver-trace-flag.html
2432+
Link: http://sql-sasquatch.blogspot.se/2014/04/whaddayaknow-bout-sqlserver-trace-flag.html<br />
2433+
Link: https://social.msdn.microsoft.com/Forums/sqlserver/en-US/9ea718c2-e0e0-40cf-b12b-3269130448b7/trace-flag-4135-sql-server-2008?forum=sqldatabaseengine
24272434

24282435

24292436
<a id="4135"></a>
@@ -3742,6 +3749,13 @@ Link: https://support.microsoft.com/en-us/help/3142595/fix-an-access-violation-o
37423749
Link: https://support.microsoft.com/en-us/help/3138659/fix-slow-performance-when-you-query-numeric-data-types-from-an-oracle-database
37433750

37443751

3752+
<a id="9448"></a>
3753+
#### Trace Flag: 9448
3754+
**Undocumented trace flag**<br />
3755+
Function: Disables the referential integrity operator.<br />
3756+
Link: https://orderbyselectnull.com/2017/12/05/the-referential-integrity-operator/<br />
3757+
3758+
37453759
<a id="9453"></a>
37463760
#### Trace Flag: 9453
37473761
Function: Disables Batch Mode in Parallel Columnstore query plans.

0 commit comments

Comments
 (0)