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.

  • 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

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:



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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