I have a need to query the SQL Central Managed Server (CMS) and pull back a number of database values in different server groups in one sweep.We have Server Groups and servers registered under the groups.
How can I make a connection from SSIS to the CMS so I can runONE query? I would prefer "not" to use powershell for this solution at this time.
When you build a SSIS DB connection you need a database name. You cannot just default to master and run a query against CMS because you will only get things in Master.
For example (CMS)
111.11.1111.333
Prod (server group)
Cust A (sql sever registered)
Cust B (sql sever registered)
Pre Prod (server group)
Cust A (sql sever registered)
Cust B (sql sever registered)
If you go to the CMS thru SSMS and run below, it brings back what I need. But, I cannot make it do that in ssis because the db connection needs a db name and the query only runs in that context.
Select @@SERVERNAME as CMSServerName,
fileid,
size,
name,
filename
From sys.sysaltfiles
Any suggestions would be appreciated.