March 19, 2009 at 6:57 pm
What is the best way to go about getting a list of database names with their server name, and version of the sql server from many many different servers. I would like to automate this as much as possible.
Thank you.
March 19, 2009 at 7:32 pm
SQL Server 2008 has the ability to send queries to multiple servers and return the results in one resultset.
Try something like this:
select serverproperty('MachineName'), serverproperty('ProductVersion'), serverproperty('Edition'), serverproperty('ProductLevel')
or this
select serverproperty('MachineName'), name
from sys.databases -- or master..sysdatabases if you need it to work with SQL Server 2000
March 19, 2009 at 7:34 pm
I would recommend starting here[/url] and following the 2 related articles.
It will work great with what you are talking about as well as a ton of other stuff.
MCITP, Database Administrator
A hodgepodge of Information Technology and Life
LinkedIn Profile
My Twitter
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply