go-sqlcmd icon indicating copy to clipboard operation
go-sqlcmd copied to clipboard

:SETVAR with a comment on the same line throws syntax error

Open BradKnowles opened this issue 1 year ago • 0 comments

If you have a line like so

:setvar RedeployJobs "YES" -- "YES" to redeploy jobs, "NO" to skip redeploy

A syntax error results

Sqlcmd: Error: Syntax error at line X near command ':SETVAR'.
Sqlcmd: Error: Syntax error at line X near command ':SETVAR'.

BradKnowles avatar Aug 05 '24 17:08 BradKnowles