How do I connect to remote SQL Server using SSMS? I know this is a classic question, but i can’t seem to find any solution.
I created an Ubuntu 16.04 LEMP droplet and installed SQL Server Linux by following this example. I have tried connecting using
sqlcmd -S localhost -U sa -P mypassword command, it works.
However, when I tried connecting using SSMS it gave me error: “A network-related or instance-specifi 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: 0 - The wait operation timed out.) (Microsoft SQL Server, Error: 258)”
Note: I have set my firewall to allow incoming traffic on port for 1433 TCP
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!