简体   繁体   English

从外部域连接到SQL Server的问题

[英]Issues connecting to sql server from outside domain

I am having issues connecting to sql server either through SSMS or my C# application. 我通过SSMS或C#应用程序连接到sql server时遇到问题。 One thing to note is that I am out of my work domain. 需要注意的一件事是我不在工作范围内。 But I have in the past worked from home before and didn't had any issues. 但是我以前以前在家工作过,没有任何问题。 Maybe once but I restarted and it worked. 也许只有一次,但我重新启动后就可以了。 But it's not working today. 但这今天不起作用。 Microsoft SQL Server ERROR 2 Microsoft SQL Server错误2

Establish whether the correct port is open and listening (TCP port 1433 by default) you may need to speak to your network administrator for this. 确定是否打开了正确的端口并进行监听(默认情况下为TCP端口1433),您可能需要与网络管理员联系。

The SQL Server Browser Service may also need to be running. SQL Server浏览器服务可能还需要运行。

If not the above then perhaps an authentication issue... 如果不是以上情况,那么可能是身份验证问题...

Finally managed to fix it. 终于设法解决了。 Logged on to sql server configuration manager and under sql server services I noticed that all the services were stopped. 登录到sql服务器配置管理器并在sql服务器服务下,我注意到所有服务都已停止。 Just started the SQL Server (MSSQLSERVER) manually and everything is back to normal. 刚刚手动启动了SQL Server(MSSQLSERVER),一切恢复正常。 Thank you everyone for your time and input. 谢谢大家的时间和投入。 Much appreciated. 非常感激。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM