January 16, 2006 at 10:39 am
I'm working in a new environment and would like to list the MSSQL servers available and their versions. Is there a "ping" equivalent for MSSQL servers?
January 16, 2006 at 11:18 am
you can use the osql utility to do this. Type osql -L from the command line or:
exec master..xp_cmdshell 'osql -L' from query analyzer and you will get a list of sql servers that are broadcasting on your network. In order to find version numbers you will have to issue a select @@version on all of these servers.
January 16, 2006 at 11:19 am
SQLRecon is excellent for this:
http://www.specialopssecurity.com/labs/sqlrecon/
it finds all SQL Server instances by scanning all sorts of methods in order to give a comprehensive list. it's also free.
Lowell
January 17, 2006 at 3:56 am
Another tool you can use is SQL Ping.
January 17, 2006 at 3:08 pm
SQLRecon and SQLPing are both by Chip Andrews. SQLRecon is descended from SQLPing and SQLPing2. Therefore, SQLRecon is the preferred tool now.
Also, the osql -L command works based on talking with the SQL Server Listener Service. If a SQL Server is not online, if it is configured to be hidden, or if udp/1434 is blocked anywhere along the way, the -L won't catch the SQL Server. SQLRecon checks services, registry entries, etc., to try and find SQL Server installs. As a result, the -L switch is probably the least effective of the methods given to locate SQL Servers on your network.
K. Brian Kelley
@kbriankelley
January 18, 2006 at 10:17 am
I'd just like to thank all those that repliend to my query, I now have a list of all the servers on my network. Really appreciate the help, thank you very much.
January 18, 2006 at 12:29 pm
Didn't realise that SQLRecon was based on SQLPing!
I guess in the job merry-go-round I missed that one. Will check it out!
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply