简体   繁体   English

如何通过互联网连接SQL Server?

[英]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配置管理器中启用网络访问。

See :

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.

相关问题 如何通过Internet将.net应用程序连接到SQL Server - How to connect my .net application to SQL Server via internet 如何通过 inte.net 连接到远程 SQL Server Express? - how to connect to remote SQL Server Express over internet? 通过Internet通过Windows身份验证连接SQL Server - Connect sql server with windows authentication over internet 如何通过远程访问将应用程序连接到SQL Server 2008 - How to connect application to SQL Server 2008 through remote access 如何将SQL Server与Unity连接? - How to connect SQL Server with Unity? 如何使用 CSOM 连接到 sharepoint 服务器 Internet 站点 - How to Connect to sharepoint server internet site using CSOM 如何连接到SQL Server并通过ASP.NET Web窗体查看数据库中的数据? - How can I connect to SQL Server and view the data in the database through ASP.NET Web Form? 如何使用LINQ to SQL连接到SQL Server? - How to Connect to SQL Server using LINQ to SQL? 连接到SQL CE并通过API请求将数据发送到远程服务器 - Connect to SQL CE and send data to remote server through API request 无法通过 Azure Active Directory 连接到 SQL Server 数据库 - Not able to connect to SQL Server database through Azure Active Directory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM