如何通过IP连接SQL Server
我有一个安装了 win2003 的远程服务器,
我可以使用远程桌面连接到该计算机,并成功在该服务器上托管一个 Web 应用程序,
我需要使用我拥有的 sql 比较工具连接到该计算机上的 SQL 服务器。
鉴于我所拥有的只是计算机的 IP 地址和管理员登录凭据,我需要采取哪些步骤才能连接到 SQL Server
I have a remote server that has win2003 installed
I can connect to the machine using remote desktop and am succesfully hosting a web app on the server
I need to connect to the SQL server on that machine using a sql compare tool that I have.
What are the steps that I need to take to be able to connect to the SQL server given that all I have is the IP address to the machine and admin login credentials
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果您尝试使用 ssms 或另一台计算机上的另一个客户端远程连接到 sql server,您需要执行以下操作:
if you are trying to remotely connect to sql server using ssms or another client on a different machine, you need to do the following:
根据具体的访问技术,需要不同的连接字符串语法。对于 .NET 提供程序,语法允许传递服务器地址。
Depending on the specific access technology, different syntaxes for connection strings are needed. For the .NET provider, the syntax allows for passing server addresses.
下面是 ADO.net 连接的示例连接。
Here's a sample connection ADO.net connection.
在远程服务器上打开端口 TCP 1433 (Sql Server)
对于您的连接字符串,只需使用服务器的 IP 地址,而不是使用计算机名称。
您应该能够毫无问题地在计算机名称和 IP 地址之间互换,因为计算机名称无论如何都会变成 IP 地址。
Open up port TCP 1433 (Sql Server) on the remote server
And for your connection string jus use the IP Address for the Server, instead of using the computer name
You should be able to interchange between computer name and IP address without any problems, because the Computer Name gets turned into an IP Address anyway.