| 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 |
|
||||||
| dev_langs |
|
||||||
| helpviewer_keywords |
|
||||||
| 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 |
[!INCLUDE sql-asdb-asdbmi-asa-pdw]
Examines the syntax of each [!INCLUDEtsql] statement and returns any error messages without compiling or executing the statement.
Transact-SQL Syntax Conventions
SET PARSEONLY { ON | OFF }
[!INCLUDEsql-server-tsql-previous-offline-documentation]
When SET PARSEONLY is ON, [!INCLUDEssNoVersion] only parses the statement. When SET PARSEONLY is OFF, [!INCLUDEssNoVersion] 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.
Requires membership in the public role.