Skip to content

Commit 62ff596

Browse files
authored
Update SQL Server Trace Flag.md
I added clarifying message about using Trace Flag 3895. You should NEVER enable this manually as a Startup Trace flag! It puts the Configuration into an inconsistent state if you later try to disable it! If you add the trace flag, the only way to disable TempDB Memory Optimized MetaData is to first remove the trace flag from the startup parameters and then use either sp_configure or ALTER SERVER CONFIGURATION to set the feature OFF
1 parent 796bc09 commit 62ff596

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

SQL Server Trace Flag.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2819,9 +2819,9 @@ Link: https://support.microsoft.com/kb/3003760
28192819
<a id="3895"></a>
28202820
#### Trace Flag: 3895
28212821
**Undocumented trace flag**<br />
2822-
Function: In SQL Server 2019, when you enable the [Memory-Optimized TempDB Metadata](https://docs.microsoft.com/en-us/sql/relational-databases/databases/tempdb-database) feature, this trace flag is automatically enabled after the next restart.
2823-
When you disable that feature, the trace flag is automatically removed after the next restart.
2824-
Also if you add race flag 3895 to startup parameters after restarting SQL Server option `IsTempdbMetadataMemoryOptimized` will be enabled.<br />
2822+
Function: In SQL Server 2019, when you enable the [Memory-Optimized TempDB Metadata](https://docs.microsoft.com/en-us/sql/relational-databases/databases/tempdb-database) feature, this trace flag is automatically enabled as a global session flag after the next restart.
2823+
When you disable that feature, the trace flag is automatically removed as a global session flag after the next restart.
2824+
Also, if you add trace flag 3895 to startup parameters after restarting SQL Server option `IsTempdbMetadataMemoryOptimized` will be enabled. NOTE: It is NOT recommended to add trace flag 3895 as a startup trace flag to enable TempDB Memory-Optimized Metadata. Although this technically enables the option, you will no longer be able to disable it using sp_configure or ALTER SERVER CONFIGURATION. The only way you'll be able to disable this feature is to manually remove this trace flag from startup parameters in the SQL Server Configuration Manager startup properties<br />
28252825
Link: https://github.com/ktaranov/sqlserver-kit/blob/master/Scripts/Trace_Flag/Trace_Flag_3895.sql<br />
28262826
Scope: global only
28272827

0 commit comments

Comments
 (0)