| title | DBCC TRACEOFF (Transact-SQL) | Microsoft Docs | ||||
|---|---|---|---|---|---|
| ms.custom | |||||
| ms.date | 07/17/2017 | ||||
| ms.prod | sql | ||||
| ms.prod_service | sql-database | ||||
| ms.component | t-sql|database-console-commands | ||||
| ms.reviewer | |||||
| ms.suite | sql | ||||
| ms.technology | t-sql | ||||
| ms.tgt_pltfrm | |||||
| ms.topic | language-reference | ||||
| f1_keywords |
|
||||
| dev_langs |
|
||||
| helpviewer_keywords |
|
||||
| ms.assetid | 1379afba-6480-454b-9c65-5e64cb4f3415 | ||||
| caps.latest.revision | 34 | ||||
| author | barbkess | ||||
| ms.author | barbkess | ||||
| manager | craigg |
[!INCLUDEtsql-appliesto-ss2008-xxxx-xxxx-xxx-md]
Disables the specified trace flags.
Transact-SQL Syntax Conventions
DBCC TRACEOFF ( trace# [ ,...n ] [ , -1 ] ) [ WITH NO_INFOMSGS ] 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.
Trace flags are used to customize certain characteristics controlling how the instance of [!INCLUDEssNoVersion] operates.
DBCC TRACEOFF returns:
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);
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 DBCC (Transact-SQL)
DBCC TRACEON (Transact-SQL)
DBCC TRACESTATUS (Transact-SQL)
Trace Flags (Transact-SQL)