2217 A declaration statement in the SQL script is not valid

Advantage Error Guide

Problem: There was an error while parsing a DECLARE statement in the SQL script.

Solution: Check the error message for an indication of the cause of the error and the location of it in the script.