I am facing the famous \'Incorrect syntax\' while using a THROW statement in a T-SQL stored procedure. I have Googled it and checked the questions on StackOverf
THROW
This continues to occur in SQL Server 2014.
I have found that putting the semi-colon at the end of BEGIN helps.
This approach has the error
IF 'A'='A' BEGIN THROW 51000, 'ERROR', 1; END;
And this approach does not have the error
IF 'A'='A' BEGIN; THROW 51000, 'ERROR', 1; END;