Job Category

  • Does anyone know where MS is storing the Job Category Name? So I could link to the table and convert the category_id to its name?

    SELECT [job_id]

    ,[category_id]

    FROM [msdb].[dbo].[sysjobs]

  • SELECT j.[job_id], j.[category_id], c.name [category_name]

    FROM [msdb].[dbo].[sysjobs] j

    JOIN [msdb].[dbo].[syscategories] c

    on j.category_id = c.category_id

    🙂

    _________________________________
    seth delconte
    http://sqlkeys.com

  • SELECT T1.[job_id]

    ,T1.[category_id], T2.name

    FROM [msdb].[dbo].[sysjobs] T1 join msdb.dbo.syscategories T2

    on T1.category_id = T2. category_id

Viewing 3 posts - 1 through 2 (of 2 total)

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