Getting Started with Web applications development with servlets and JSP - Part 5: Filters
First Time? You can support us by signing up. It takes only 5 seconds. Click here to sign up. If you already have an account, click here to login.


Upload Image Close it
Select File

Learned something today? Share it, or learn from what others have learned today

SQL Server - SET PARSEONLY will just parse the statement

Dec 29 2011 5:49AM by Robert Dennyson   

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

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.

Here is the will do some test against it. What do you think about its execution?

set parseonly on
set parseonly off

Though we reset the PARSEONLY preference, it will validate the statement but never will execute.

Read More..  [14 clicks]


Robert Dennyson
17 · 11% · 2563
8
 
5
 
 
0
Incorrect
 
0
Interesting
 
0
Forgotten
 
0
Move



Submit

Your Comment


Sign Up or Login to post a comment.

"SQL Server - SET PARSEONLY will just parse the statement" rated 5 out of 5 by 8 readers
SQL Server - SET PARSEONLY will just parse the statement , 5.0 out of 5 based on 8 ratings
    Copyright © Beyondrelational.com Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising