title | description | author | ms.author | ms.date | ms.service | ms.subservice | ms.topic | f1_keywords | helpviewer_keywords | dev_langs | |||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
DBCC HELP (Transact-SQL) |
DBCC HELP returns syntax information for the specified DBCC command. |
rwestMSFT |
randolphwest |
12/05/2022 |
sql |
t-sql |
reference |
|
|
|
[!INCLUDE SQL Server Azure SQL Managed Instance]
Returns syntax information for the specified DBCC command.
:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions
DBCC HELP ( 'dbcc_statement' | @dbcc_statement_var | '?' )
[ WITH NO_INFOMSGS ]
The name of the DBCC command for which to receive syntax information. Provide only the part of the DBCC command that follows DBCC, for example, CHECKDB
instead of DBCC CHECKDB
.
Returns all DBCC commands for which help is available.
Suppresses all informational messages that have severity levels from 0 through 10.
DBCC HELP
returns a result set displaying the syntax for the specified DBCC command.
Requires membership in the sysadmin fixed server role.
The following example returns syntax information for DBCC CHECKDB
:
DECLARE @dbcc_stmt sysname;
SET @dbcc_stmt = 'CHECKDB';
DBCC HELP (@dbcc_stmt);
GO
The following example returns all DBCC statements for which help is available.
DBCC HELP ('?');
GO