Skip to content

Latest commit

 

History

History
78 lines (62 loc) · 2.2 KB

File metadata and controls

78 lines (62 loc) · 2.2 KB
Error in user YAML: (<unknown>): did not find expected comment or line break while scanning a block scalar at line 6 column 1
---
title: "DBCC HELP (Transact-SQL) | Microsoft Docs"
ms.custom: ""
ms.date: "07/16/2017"
ms.prod: sql
ms.prod_service: "sql-database"
|ms.reviewer: ""
ms.suite: "sql"
ms.technology: t-sql
ms.tgt_pltfrm: ""
ms.topic: "language-reference"
f1_keywords: 
  - "DBCC HELP"
  - "DBCC_HELP_TSQL"
dev_langs: 
  - "TSQL"
helpviewer_keywords: 
  - "DBCC statement syntax information"
  - "DBCC HELP statement"
ms.assetid: 306092c6-4354-4e47-928b-606124fbdc6e
caps.latest.revision: 33
author: uc-msft
ms.author: umajay
manager: craigg
---

DBCC HELP (Transact-SQL)

[!INCLUDEtsql-appliesto-ss2008-xxxx-xxxx-xxx-md]

Returns syntax information for the specified DBCC command.

Topic link icon Transact-SQL Syntax Conventions

Syntax

DBCC HELP ( 'dbcc_statement' | @dbcc_statement_var | '?' )  
[ WITH NO_INFOMSGS ]  

Arguments

dbcc_statement | @dbcc_statement_var
Is 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.

WITH NO_INFOMSGS
Suppresses all informational messages that have severity levels from 0 through 10.

Result Sets

DBCC HELP returns a result set displaying the syntax for the specified DBCC command.

Permissions

Requires membership in the sysadmin fixed server role.

Examples

A. Using DBCC HELP with a variable

The following example returns syntax information for DBCC CHECKDB.

DECLARE @dbcc_stmt sysname;  
SET @dbcc_stmt = 'CHECKDB';  
DBCC HELP (@dbcc_stmt);  
GO  

B. Using DBCC HELP with the ? option

The following example returns all DBCC statements for which Help is available.

DBCC HELP ('?');  
GO  

See Also

DBCC (Transact-SQL)