Returns syntax information for the specified DBCC statement.
DBCC HELP ('dbcc_statement' | @dbcc_statement_var | '?')
DBCC HELP returns a result set displaying the syntax for the specified DBCC statement. Syntax varies between the DBCC statements.
DBCC HELP permissions default to members of the sysadmin fixed server role only, and are not transferable.
This example returns syntax information for DBCC CHECKDB.
DECLARE @dbcc_stmt sysname
SET @dbcc_stmt = 'CHECKDB'
DBCC HELP (@dbcc_stmt)
GO
This example returns all DBCC statements for which help is available.
DBCC HELP ('?')
GO
DBCC |