Sign up ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

Is it possible to execute a stored procedure (or any T-SQL) against a Central Management Server (CMS) via a SQL Agent job?

The idea here is to exercise the CMS to hit all the registered instances with a query (or action), in an unattended (non-SSMS, non-real time) way.

share|improve this question
Jason had suggested this type of action may be possible via PowerShell. Not using Powershell would be preferred, but being able to do this at all is even more preferred. – Eric Higgins Mar 8 '12 at 17:09
Might be on to something from an old K.Tripp blog post. In MSDB: sysmanagement_shared_registered_servers_internal – Eric Higgins Mar 8 '12 at 18:42

1 Answer 1

up vote 1 down vote accepted

The answer to this is: not possible, however my research lead me to these tables in MSDB which are used to populate the CMS registered servers. These tables can be referenced in your code:



share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.