Comments
3 comments
-
Hi @jsreynolds1
Sorry, to hear you're experiencing this issue!
I'm going to raise this with the developers and I'll keep you posted on further updates! -
While T-SQL syntax typically does not require semicolons, THROW is an exception.
Microsoft docs: "The statement before the THROW statement must be followed by the semicolon (;) statement terminator."
Yes, even if the previous "statement" is BEGIN. So just add a semicolon in there and you will be good to go. -
@emmar00 Good lord, I never knew that. Thanks for pointing it out.
Add comment
Please sign in to leave a comment.
I'm seeing an issue where I have a THROW in a BEGIN/END statement, and unless I preface the THROW with a semi-colon, SQL Prompt sees it as an issue.
I don't recall SQL syntax requiring a prefixed semi-colon?
SQL Prompt 10.14.21.9884
SSMS 20.1.10.0
Windows 11 latest
This is the code: