--- description: "SET PARSEONLY (Transact-SQL)" title: "SET PARSEONLY (Transact-SQL) | Microsoft Docs" ms.custom: "" ms.date: "11/27/2017" ms.prod: sql ms.prod_service: "database-engine, sql-database" ms.reviewer: "" ms.technology: t-sql ms.topic: reference f1_keywords: - "PARSEONLY_TSQL" - "SET_PARSEONLY_TSQL" - "PARSEONLY" - "SET PARSEONLY" dev_langs: - "TSQL" helpviewer_keywords: - "parsing [SQL Server], SET PARSEONLY statement" - "checking syntax" - "PARSEONLY option" - "syntax [SQL Server], verifying" - "verifying syntax" - "SET PARSEONLY statement" ms.assetid: 514ab042-c53e-4d96-be71-fb08fcc6ef3c author: WilliamDAssafMSFT ms.author: wiassaf monikerRange: ">=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-server-2016||>=sql-server-linux-2017||=azuresqldb-mi-current" --- # SET PARSEONLY (Transact-SQL) [!INCLUDE [sql-asdb-asdbmi-asa-pdw](../../includes/applies-to-version/sql-asdb-asdbmi-asa-pdw.md)] Examines the syntax of each [!INCLUDE[tsql](../../includes/tsql-md.md)] statement and returns any error messages without compiling or executing the statement. ![Topic link icon](../../database-engine/configure-windows/media/topic-link.gif "Topic link icon") [Transact-SQL Syntax Conventions](../../t-sql/language-elements/transact-sql-syntax-conventions-transact-sql.md) ## Syntax ```syntaxsql SET PARSEONLY { ON | OFF } ``` [!INCLUDE[sql-server-tsql-previous-offline-documentation](../../includes/sql-server-tsql-previous-offline-documentation.md)] ## Remarks When SET PARSEONLY is ON, [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] only parses the statement. When SET PARSEONLY is OFF, [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] compiles and executes the statement. The setting of SET PARSEONLY is set at parse time and not at execute or run time. Do not use PARSEONLY in a stored procedure or a trigger. SET PARSEONLY returns offsets if the OFFSETS option is ON and no errors occur. ## Permissions Requires membership in the **public** role. ## See Also [SET Statements (Transact-SQL)](../../t-sql/statements/set-statements-transact-sql.md) [SET OFFSETS (Transact-SQL)](../../t-sql/statements/set-offsets-transact-sql.md)