Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DROP PROCEDURE IF EXISTS causes error parsing #268

Open
djfoxer opened this issue Apr 2, 2021 · 2 comments
Open

DROP PROCEDURE IF EXISTS causes error parsing #268

djfoxer opened this issue Apr 2, 2021 · 2 comments

Comments

@djfoxer
Copy link

djfoxer commented Apr 2, 2021

DROP PROCEDURE IF EXISTS dbo.Procedure

causes dialog:

Errors found. Continue?
Errors found during SQL parsing. Would you like to apply formatting anyway?
Yes No

@sfabrey
Copy link

sfabrey commented Apr 28, 2021

Same with Tables, Views, etc.

If you click "Yes" it puts a couple line breaks before the "IF"

@MisterZeus
Copy link

That may be because the "DROP object IF EXISTS" trick is specific to Microsoft SQL Server, it's not ANSI Standard T-SQL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants