Hi,
I have 5 SQL Servers called the following (all SQL 2008 Servers):
Group_Production
Group_Test
Group_Development
Other_Production
Other_Test
In each of these servers there are around 20+ databases. One of my databases is called Group_Servers, which contains a table where I have manually typed SQL Server Name with a Unique Reference Number like so:
URN SQL_Server
SN0001 Group_Production
SN0002 Group_Test
SN0003 Group_Development
SN0004 Other_Production
SN0005 Other_Test
In my SQL Management Studio, I have created a Local Server Group called Business Name and have registered all 5 servers in that Group. If I right Click the Group, click new query and run:
use master
select * from sys.databases
It gives me all of the Servers with their subsiquent databases.
However what I am trying to do is join the above query with another query on the database Group_Servers so I can pull through the Unique Reference Numbers with the SQL Server from the above query.
I cannot create a linked servers because I have more than two servers where I need to manipulate date from. Can this be done any other way?
Regards,