Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting SQL versions on all servers

Status
Not open for further replies.

JtheRipper

IS-IT--Management
Joined
Oct 4, 2002
Messages
274
Location
GB
Hi there,

I want to create a script to list the version of all SQL Servers on the network.

I know I can use "select @@version" to get the version of the sql server I am logged on to, and I know I can execute "exec master..xp_cmdshell 'ISQL -L'" to get a list of all sql servers on the network, but I do not know how to connect the two and create a SP to run "select @@version" on each server.

Any help/info?

Thanks,
J.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top