We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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'.
The text was updated successfully, but these errors were encountered:
Huh, I was about to report a similar problem in regards to [:]QUIT. In sqlcmd ODBC, the following will cause QUIT to work:
[:]QUIT
QUIT
PRINT 1; :QUIT --This is a test
So, for example, sqlcmd ODBC version 15.0.1300.359 won't provide an output. Using sqlcmd Go v1.8.0, however, you get similar to the OP:
Sqlcmd: Error: Syntax error at line 2 near command 'QUIT'. 1
Enabling the -b switch causes the error to be repeated:
-b
Sqlcmd: Error: Syntax error at line 2 near command 'QUIT'. Sqlcmd: Error: Syntax error at line 2 near command 'QUIT'.
Sorry, something went wrong.
shueybubbles
Successfully merging a pull request may close this issue.
If you have a line like so
:setvar RedeployJobs "YES" -- "YES" to redeploy jobs, "NO" to skip redeploy
A syntax error results
The text was updated successfully, but these errors were encountered: