Hi there, first of all - thank you for the work you put into getting this image + sqlmd wrapper working, it's been instrumental.
docker exec mydb \
/bin/bash -c \
"/opt/mssql-tools/bin/sqlcmd -t 60 -S 127.0.0.1,9433 -U sa -P MySecure!P@ss -Q "SET NOCOUNT ON; select 9999+9999;" 2> /dev/null"
Invoke-Sqlcmd: A connection was successfully established with the server, but then an error
occurred during the pre-login handshake. (provider: TCP Provider, error: 35 - An internal
exception was caught)
Invoke-Sqlcmd: Incorrect syntax was encountered while parsing ''.
pwsh -Command 'Invoke-SqlCmd -ConnectionTimeout "60" -ServerInstance "127.0.0.1,9433"
-Username "sa" -Password "MySecure!P@ss" -Query "SET NOCOUNT ON; select 9999+9999;"'
Do you have any thoughts on what might have changed that could be causing this? I additionally use sqlmd
with -i
to load data - which I haven't tested yet but I suspect it would have a similar problem.