[英]How to connect application to SQL Server 2008 through remote access
Is there any way to connect to the database which is at remote server using ASP.NET ? 有什么方法可以使用ASP.NET连接到远程服务器上的数据库? I checked for TCP/IP ports at remote desktop.
我在远程桌面上检查了TCP / IP端口。 They are also enabled I have tried specifying IP address and SQL Server name in the connection string but it shows the following error:
它们也已启用,我尝试在连接字符串中指定IP地址和SQL Server名称,但显示以下错误:
(provider: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)
(提供者:TCP提供程序,错误:0-连接尝试失败,因为一段时间后连接方未正确响应,或者连接建立因连接主机未能响应而失败。)
Thanks in advance 提前致谢
Must be change some configuration on Sql Server Configuration Manager
必须在
Sql Server Configuration Manager
上更改某些配置
Sql Server Configuration Manager
And Select on tab SQL Server Network Connection
Sql Server Configuration Manager
然后在选项卡上选择“ SQL Server Network Connection
1433
is a defaultSQL Server
Port.1433
是默认的SQL Server
端口。 If you want to set another port , port must be unavailable and define port onWindows Firewall With Advanced Security
如果要设置其他端口,则该端口必须不可用,并在
Windows Firewall With Advanced Security
上定义端口
you can also review the document about the topic here 您还可以在此处查看有关该主题的文档
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.