Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

SET PARSEONLY (Transact-SQL)

Examines the syntax of each Transact-SQL statement and returns any error messages without compiling or executing the statement.

Topic link iconTransact-SQL Syntax Conventions


SET PARSEONLY { ON | OFF }

When SET PARSEONLY is ON, SQL Server only parses the statement. When SET PARSEONLY is OFF, SQL Server 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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.