how to find all sql agent jobs on all servers on domain

  • looking to do this by a sql script

  • You can use:

    SELECT job_id, [name] FROM msdb.dbo.sysjobs;

    on each server.

  • I'm trying not to click on every server. I am looking for a query where I can open ssms and run a query that will look at all servers on our DNS

  • In the Registered Servers window create a Central Managment Server and add all the required instances as New Server Registrations. Then you can right-click on the managing server, and choose New Query. This query will be executed on all the servers that are registered and the results "UNIONED" into one result set. The query posted above returns the Server Name, job_id, and name of each job on all my registered servers.

  • That worked. Thanks

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply