[英]How to connect sql server through internet?
如何将sql server从客户端系统通过Internet和IP地址连接到主主机系统?就像公司代表中的软件通过Internet connected连接到主办公室的软件一样?
Your sql server should be allowing remote connections . 您的sql服务器应该允许远程连接 。 Then you need to get through firewall. 然后,您需要通过防火墙。 This isn't the appropriate/recommended way of accessing data though. 但是,这不是访问数据的适当/推荐方式。
I would recommend that you use services in between to fetch data. 我建议您在两者之间使用服务来获取数据。 so your architecture should be something like this 所以你的架构应该是这样的
Client machine--Web services(any type)--Database 客户端计算机--Web服务(任何类型)-数据库
Database--web services--client machine 数据库--Web服务-客户端计算机
You should Enable Network Access in SQL Server Configuration Manager. 您应该在SQL Server配置管理器中启用网络访问。
On the Start menu, choose All Programs, point to Microsoft SQL Server and then click SQL Server Configuration Manager. 在“开始”菜单上,选择“所有程序”,指向“ Microsoft SQL Server”,然后单击“ SQL Server配置管理器”。
Optionally, you can open Computer Manager by right-clicking My Computer and choosing Manage. (可选)您可以通过右键单击“我的电脑”并选择“管理”来打开“计算机管理器”。 In Computer Management, expand Services and Applications, expand SQL Server Configuration Manager. 在“计算机管理”中,展开“服务和应用程序”,再展开“ SQL Server配置管理器”。 List item 项目清单
Expand SQL Server Network Configuration, and then click Protocols for InstanceName. 展开“ SQL Server网络配置”,然后单击“ InstanceName的协议”。 In the list of protocols, right-click the protocol you want to enable, and then click Enable. 在协议列表中,右键单击要启用的协议,然后单击“启用”。 The icon for the protocol will change to show that the protocol is enabled. 该协议的图标将更改为显示该协议已启用。 To disable the protocol, follow the same steps, but choose Disable in step 3. 要禁用该协议,请执行相同的步骤,但在步骤3中选择“禁用”。
Is the server hosted in your network ? 服务器托管在您的网络中吗? if so then you will have to configure server to allow access to users 如果是这样,那么您将必须配置服务器以允许访问用户
If it is not in your network then you will need to open firewall for client IP
. 如果它不在您的网络中,则需要为客户端IP
打开防火墙。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.