本文介绍了如何配置SQL 2008 R2以从Internet(而不是从LAN)连接数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Internet从另一个分支连接sql server.

我收到此错误:
建立与SQL Server的连接时发生与网络相关或特定于实例的错误.服务器未找到或无法访问.验证实例名称正确,并且已将SQL Server配置为允许远程连接. (提供者:TCP提供程序,错误:0-无法建立连接,因为目标计算机主动拒绝了它.)

我正在使用以下连接字符串格式:
CS =数据源= ipaddress,1433;网络库= DBMSSOCN;初始目录= db;用户ID = sa;密码= 123;

I want to connect sql server from another branch using internet.

I getting 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: 0 - No connection could be made because the target machine actively refused it.)

i m using following connectionstring format :
CS = Data Source=ipaddress,1433;Network Library=DBMSSOCN;Initial Catalog=db;User ID=sa;Password=123;

推荐答案


这篇关于如何配置SQL 2008 R2以从Internet(而不是从LAN)连接数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 06:44