Get List of SQL Server Agent Job Names, Category Names
Need to get a quick list of all SQL Agent jobs, with their respective categories? Join the sysjobs table to the syscategories table:
SELECT j.[job_id], j.[name] [job_name], j.[category_id], c.name [category_name] FROM [msdb].[dbo].[sysjobs] j JOIN [msdb].[dbo].[syscategories] c ON j.category_id = c.category_id ORDER BY 2
Posted on May 4, 2012, in SQL Server. Bookmark the permalink. Leave a Comment.


development and administration, he enjoys C#.NET and Linux development.

Leave a Comment
Comments (0)