79559555

Date: 2025-04-07 10:01:20
Score: 1
Natty:
Report link

For me, in SQL Server, I'm getting this error because the query I am executing is something like so:

IF <CONDITION>
  <CODE HERE>
END
ELSE
BEGIN
   <CODE HERE>
END

in the above query, there's a missing BEGIN next to the IF

it should be like below:

IF <CONDITION>
BEGIN
  <CODE HERE>
END
ELSE
BEGIN
   <CODE HERE>
END
Reasons:
  • RegEx Blacklisted phrase (1): I'm getting this error
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: aj go