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.
精彩评论