我如何连接& 通过 Internet 远程管理 SQL Server 数据库?

发布于 2024-07-07 01:34:50 字数 179 浏览 6 评论 0原文

如何远程连接到 SQL Server 并管理我的数据库对象? 我需要连接到位于网络托管公司服务器上的数据库。 我有服务器名称、IP 地址、数据库用户名和地址。 密码。 我的机器上安装了 SQL Server 2000。

我可以使用 SQL Server 企业管理器来实现此目的吗? 分步指南将非常有帮助。

How do I connect to an SQL Server remotely and administer my database objects? I need to connect to my database located on the web hosting company's server. I have the server name, IP address, my database username & password. I have an installation of SQL Server 2000 in my machine.

Can I use SQL Server Enterprise Manager for this? A step by step guide would be very helpful.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

妞丶爷亲个 2024-07-14 01:34:50

是的,您可以使用企业管理器(或 SQL Server Management Studio,即使它是 Express 版本)连接到您具有 TCP/IP 连接的任何 SQL Server(与您正在使用的工具版本相同或更低)。 只需启动它,在“服务器名称”框中输入 DNS 主机名或 IP 地址,然后单击“连接”即可。

有两件事可能会阻止此操作:

  • 您的 SQL Server 未设置 TCP/IP 连接。 这是从 2005 版开始的默认设置,可以使用 SQL Server 配置进行更改Manager

  • 您和 SQL Server 之间有防火墙阻止 TCP/IP 流量。 这是一个完全合理的结构:您希望您的数据库服务器可以从通用互联网上访问,因为这是一个巨大的安全风险。 事实上,如果您的托管公司默认允许这种访问,我就会寻找不同的提供商...

无论如何,您的场景中似乎需要的是:a)托管公司在您的计算机上启用 TCP/IP SQL Server 实例,b) 它们为您提供对运行实例的 IP 地址的安全访问。
这将涉及某种 VPN 或 SSH 端口转发解决方案,或者至少是一个 IP 过滤器,其中只有“受信任”的 IP 地址才能访问 SQL Server(这不是一个很好的解决方案,但如果没有其他解决方案可以使用)实施的)。 您必须与您的托管公司讨论这些要求。

Yes, you can use Enterprise Manager (or SQL Server Management Studio, even if it's an Express version) to connect to any SQL Server (of the same or lower version as the tool you're using) you have TCP/IP connectivity to. Just launch it, enter the DNS host name or IP address in the 'Server Name' box and hit Connect.

Two things may prevent this from working:

  • Your SQL Server isn't set up for TCP/IP connectivity. This is the default setting from version 2005 onwards, and can be changed using the SQL Server Configuration Manager.

  • There is a firewall between you and your SQL Server blocking TCP/IP traffic. This is an entirely sensible construction: you do NOT want your database server to be available from the general Internet, as this is a huge security risk. In fact, if your hosting company allows this kind of access by default, I'd be looking for a different provider...

Anyway, what seems to be needed in your scenario is: a) the hosting company enabling TCP/IP on your SQL Server instance, b) them providing you with secure access to the IP address that instance is running on.
This will involve some kind of VPN or SSH port-forwarding soluition, or at least an IP filter, where only 'trusted' IP addresses can access the SQL Server (which is not a great solution, but can be used if nothing else can be implemented). You'll have to discuss these requirements with your hosting company.

放手` 2024-07-14 01:34:50

是的,您可以执行此操作,但如何执行此操作将取决于您的托管设置。

正如 Brannon 建议的那样,您需要在防火墙上打开端口 1433。 单独这样做是一件危险的事情,因此您可以将其与 VPN 结合起来。 设置此功能可能非常棘手,您最终可能会阻止自己访问服务器并需要托管公司帮助重置它。

另一种选择是一些网络管理工具,例如:
http://www.microsoft.com/downloads/details.aspx microsoft.com/downloads/details.aspx?familyid=C039A798-C57A-419E-ACBC-2A332CB7F959&displaylang=en
http://www.mylittleadmin.com/en/welcome.aspx

Yes you can do this but how you do this will be dependent on your hosting setup.

As Brannon suggests you will need to open port 1433 on the firewall. This would be a dangerous thing to do on its own so you would combine it with a VPN. It can be quite tricky to set this up through and you could end up blocking yourself from access to the server and needing the hosting companies help to reset it.

Another option would be some of the web management tools such as:
http://www.microsoft.com/downloads/details.aspx?familyid=C039A798-C57A-419E-ACBC-2A332CB7F959&displaylang=en
http://www.mylittleadmin.com/en/welcome.aspx

少钕鈤記 2024-07-14 01:34:50

这是可能的,但是很多事情都需要调整才能实现连接。

Enterprise Manager 和 SQL Management Studio 仅使用标准的 SQL 客户端连接。 默认 TCP/IP 端口为 1433,但主机需要允许该端口通过防火墙。 如果您使用的是命名实例,那么我相信您还需要能够连接到端口 1434。

大多数管理员不允许从防火墙外部直接访问 SQL Server。 在这种情况下,如果您可以通过 VPN 连接到主机,那么您应该能够使用 Enterprise Manager 或 SQL Management Studio 直接连接到服务器。

It is possible, but a lot of things need to align for you to be able to connect.

Enterprise Manager and SQL Management Studio just use a standard client connection to SQL. The default TCP/IP port is 1433, but the host needs to allow that port through the firewall. If you are using a named instance, then I believe you also need to be able to connect to port 1434.

Most administrators do not allow direct access to the SQL Server from outside the firewall. In that case, if you can connect to the host over VPN then you should be able to connect directly to the server with Enterprise Manager or SQL Management Studio.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文