❔ Establishing a connection to SQL Server in Mac (Azure data studio & Docker desktop)
Ive been stuck on this error:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 35 - An internal exception was caught)
Im using VSCode, Azure data studio & Docker on Mac
Ive been using google & AI looking up port overlapping, making sure my SQL Server name is correct in both Docker & appsetting.json etc i think my code is correct & my server is running but no success. Its my 1st time using all these tools so theres a lot of confusion. I do have both Azure & docker running, checked the SQL server is running in terminal
3 Replies
What does your connection string look like?
Show your docker run line/ compose file (for port mapping) and conn str
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.