Running project from CMD "unexpected char: '\'
tspeich
Posts: 14 Bronze 2
I have an automated build project that packages a script created previously by RedGate Compare. Over the weekend the tools in mention where upgraded to Packager 6.4 Compare to 8.5. This morning my build is failing with the error message "unexpected char: '\' " I am calling a project file from the cmd line with this call
C:\Downloads\Sql Packager 6>sqlpackager.exe/Project:"C:\RedGate\DSIDB_ALL.sqlpkg"
This same call has been working without incident for several months. I can also execute the package over the same script from the GUI and everything works fine. Any calls from the cmd line produce the error.
C:\Downloads\Sql Packager 6>sqlpackager.exe/Project:"C:\RedGate\DSIDB_ALL.sqlpkg"
This same call has been working without incident for several months. I can also execute the package over the same script from the GUI and everything works fine. Any calls from the cmd line produce the error.
Comments
There was no carriage return after a GO which was resuling in the code below
Adding the carriage return solved the problem. Although there are other issues with sqlCompare that have caused problems since upgrading. My superiors have created an incident for those