如何查找本地网络中安装sql的IP地址。 [英] How find the IP Address, where sql is installed in the local network.

查看:90
本文介绍了如何查找本地网络中安装sql的IP地址。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了简单的Windows应用程序并安装在PC(服务器)中,然后我想通过本地网络中的客户端找到它的可能性。

解决方案

< blockquote>如果您的客户端和服务器在同一台机器上,那么您可以连接到localhost。如果MSSQL服务器启动并运行,那么你应该能够找到它。



你可能需要一个连接字符串:





1,

在桌面上创建一个像test.txt一样的文件。重命名为test.udl打开它尝试连接到sql server。如果它工作,然后用记事本再次打开udl并获取连接字符串。



2,

检查sql server实例是否已启动和运行:



Star - >程序 - > Microsoft SQL Server - >配置工具 - > SQL Server配置管理器。您可以检查SQL


您是否可以从以下位置获得解决方案:如何在网络中枚举SQL Server实例 [ ^ ]


I create the simple windows app and installed in a pc(server),then i want to find it by the clients in the local network how its possible.

解决方案

If your client and server is on the same machine then you can connect to the localhost. If the MSSQL server up and runnig then you should be able to find it.

You would propably need a connection string:


1,
Create a file in the desktop like test.txt. Rename in to test.udl open it an try to connect to the sql server. If it works then open the udl again with Notepad and grab the connection string.

2,
Check if the sql server instance is up and running:

Star -> Programs -> Microsoft SQL Server -> Configuration Tools -> SQL Server Configuration Manager. You can check if the SQL


You might be able to get a solution from: How to enum SQL Server instances in network[^]


这篇关于如何查找本地网络中安装sql的IP地址。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆