Closed Santhin closed 1 month ago
Thanks for raising this. Interesting, didn't know about the port number vs named instance logic for MSSQL.
Done, see https://github.com/slingdata-io/sling-cli/pull/303/commits/fe03d9cc5b5f09d8b55c27f1ca40970bca975e28 Feel free to test and reporting any issues. Closing.
Issue Description
While trying to test the env connection for the mssql db with the instance name I cannot connect due to adding the default port number. Based on the docs from Microsoft:
Sling version (
v1.2.10
):Operating System (
mac
):While providing the url
The code is adding port number which is creating the connection issue
I've tested uri with
go-mssqldb
and it worked properlyFor time being the workaround for that is to locally compile without this line https://github.com/slingdata-io/sling-cli/blob/main/core/dbio/database/database_sqlserver.go#L40