SQL Prompt 10.14.21.9884 semi-colon syntax problem

jsreynolds1jsreynolds1 Posts: 94 Silver 2
edited August 5, 2024 6:40PM in SQL Prompt
Good morning,

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:


SET NOCOUNT ON;

--
-- Validation
--
IF @type NOT IN ('gl', 'accts')
BEGIN
    THROW 60000, N'Parameters not passed correctly.', 1;
    RETURN;
END;

Tagged:

Answers

Sign In or Register to comment.