-
Notifications
You must be signed in to change notification settings - Fork 760
New issue
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
Path to sqlcmd binary executable has changed #898
Comments
I have the same issue after upgrading to |
@Epimetheus89 , think this is the new default path, according Docker HUB page:
Although they are talking about SQL 2022, but seems that's the way now. Saw that TestContainers SQL Server updated their lib as well to search for sqlcmd using wildcards instead of fixed path. |
This nasty surprise could have been avoided if the image had a |
@Epimetheus89 and @rapolas-oag, if you'd like, you can add I'm doing something similar here. |
@cezarlamann thanks, but as my project is flexible at the moment for this kind of changes, I amended scripts to new path. |
For container setup we used
/opt/mssql-tools/bin/sqlcmd
to create needed Server Objects, like Linked server as part of pre-deployment.After changing version to
FROM mcr.microsoft.com/mssql/server:2019-latest
this binary executable is not accessible in that location and all pre-deployment and those scripts were left not executed which led to failing deployments.Checked the latest version and binary executable is under ```/opt/mssql-tools18/bin/sqlcmd``
Once reverted to
FROM mcr.microsoft.com/mssql/server:2019-CU27-ubuntu-20.04
same setup worked without issues and binary executable was in expected folder.The text was updated successfully, but these errors were encountered: