Why is my ReadyRoll powershell deployment in VSTS failing with 'sqlcmd.exe' is not recognized?
griff182uk
Posts: 9 New member
in ReadyRoll
I am attempting to do an elastic pool database release using powershell with ReadyRoll, where the schemas and migrations are kept in synch across multiple shards that I just loop though. It works from my machine (doh!) but as soon as I call the powershell from as a task from VSTS I get the dreaded "'sqlcmd.exe' is not recognized" error.
I've tried downloading ReadyRoll build components before the task in the release to see if that would help but to no avail.
I have a similar process setup with dacpac deployment which works fine, but I'd like to use ReadyRoll for this.
Any help much appreciated while I continue to investigate.
Thanks
I've tried downloading ReadyRoll build components before the task in the release to see if that would help but to no avail.
I have a similar process setup with dacpac deployment which works fine, but I'd like to use ReadyRoll for this.
Any help much appreciated while I continue to investigate.
Thanks
Tagged:
Answers
I'm guessing SqlCmd.exe gets imported as part of the ReadyRoll deploy task, which then allows the powershell to work.
I'll mark this as answer if nothing better comes along.
I've confirmed that this works with the Hosted VS2017 agent.
Apologies for the inconvenience. I'll update this thread once the team have had a chance to investigate this.
Product Manager
Redgate Software