开发者

Find SQL Servers using Java

开发者 https://www.devze.com 2022-12-19 18:43 出处:网络
This might be a basic question, but I tried googling it and couldn\'t find an answer. I need to make a list of all the SQL Servers on a network.This is very easy to do using the .NET framework (Syste

This might be a basic question, but I tried googling it and couldn't find an answer.

I need to make a list of all the SQL Servers on a network. This is very easy to do using the .NET framework (System.Data.Sql.SqlDataSourceEnumerator), but is there also a relatively simple way to do this in java 开发者_运维问答as well? While I was doing my research, I came across the possibility of listening in at different ports, but that seemed un-user friendly. Any ideas?

Thank you all so much.


You can use

osql -L

and parse output.

0

精彩评论

暂无评论...
验证码 换一张
取 消