| title | DBCC TRACEOFF (Transact-SQL) | ||||
|---|---|---|---|---|---|
| description | DBCC TRACEOFF disables the specified trace flags. | ||||
| author | rwestMSFT | ||||
| ms.author | randolphwest | ||||
| ms.date | 12/05/2022 | ||||
| ms.service | sql | ||||
| ms.subservice | t-sql | ||||
| ms.topic | reference | ||||
| f1_keywords |
|
||||
| helpviewer_keywords |
|
||||
| dev_langs |
|
[!INCLUDE SQL Server - ASDBMI]
Disables the specified trace flags.
:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions
DBCC TRACEOFF ( trace# [ , ...n ] [ , -1 ] ) [ WITH NO_INFOMSGS ]
The number of the trace flag to disable.
Disables the specified trace flags globally.
Suppresses all informational messages that have severity levels from 0 through 10.
Trace flags are used to customize certain characteristics controlling how the instance of [!INCLUDEssNoVersion] operates.
DBCC TRACEOFF returns the following message:
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
Requires membership in the sysadmin fixed server role.
The following example disables trace flag 3205.
DBCC TRACEOFF (3205);
GOThe following example first disables trace flag 3205 globally.
DBCC TRACEOFF (3205, -1);
GOThe following example disables Trace flags 3205 and 260 globally.
DBCC TRACEOFF (3205, 260, -1);
GO