DBCC TRACEOFF (Transact-SQL)
Applies to: SQL Server (all supported versions)
Azure SQL Managed Instance
Disables the specified trace flags.
Transact-SQL Syntax Conventions
Syntax
DBCC TRACEOFF ( trace# [ ,...n ] [ , -1 ] ) [ WITH NO_INFOMSGS ]
Note
To view Transact-SQL syntax for SQL Server 2014 and earlier, see Previous versions documentation.
Arguments
trace#
Is the number of the trace flag to disable.
-1
Disables the specified trace flags globally.
WITH NO_INFOMSGS
Suppresses all informational messages that have severity levels from 0 through 10.
Remarks
Trace flags are used to customize certain characteristics controlling how the instance of SQL Server operates.
Result Sets
DBCC TRACEOFF returns:
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
Permissions
Requires membership in the sysadmin fixed server role.
Examples
The following example disables trace flag 3205
.
DBCC TRACEOFF (3205);
GO
The following example first disables trace flag 3205
globally
DBCC TRACEOFF (3205, -1);
GO
The following example disables trace flags 3205
and 260
globally.
DBCC TRACEOFF (3205, 260, -1);
GO
See Also
DBCC (Transact-SQL)
DBCC TRACEON (Transact-SQL)
DBCC TRACESTATUS (Transact-SQL)
Trace Flags (Transact-SQL)
Feedback
Submit and view feedback for