Closed crega closed 1 year ago
Hi @crega,
This is the expected breaking change as per roadmap to secure-by-default.
The simple workaround in your case (since you trust your server certificate) would be to use -TrustServerCertificate
at line 58 of your script.
We are experiencing issues regarding connecting to db in v 22+.
We have Azure devOps pipeline that creates docker container with MsSQL server version 2019 as a pipeline resource. We then connect to server and try to create integration tests database. With version 22+ we have issue that pre-handshake failed.
Our Azure pipeline snippet :![image](https://user-images.githubusercontent.com/15244223/229767480-48d503e3-5158-4e5b-a4b9-de9c8ee49313.png)
Error that we get when running pipeline:
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)
Current workaround is not to use v 22+. So we had to request
-RequiredVersion 21.1.18256
version in order for our pipeline to work as before.