Skip to main content

select TOP 1 job_id from msdb.dbo.sysjobs WHERE category_id IN (SELECT category_id FROM msdb.dbo.syscategories WHERE name = 'REPL-LogReader')

select TOP 1 job_id 
from msdb.dbo.sysjobs 
WHERE category_id IN (SELECT category_id 
                      FROM msdb.dbo.syscategories 
                      WHERE name = 'REPL-LogReader')

select TOP 1 job_id from msdb.dbo.sysjobs WHERE category_id IN (SELECT category_id FROM msdb.dbo.syscategories WHERE name = 'REPL-LogReader')

select TOP 1 job_id 
from msdb.dbo.sysjobs 
WHERE category_id IN (SELECT category_id 
                      FROM msdb.dbo.syscategories 
                      WHERE name = 'REPL-LogReader')
Source Link

select TOP 1 job_id from msdb.dbo.sysjobs WHERE category_id IN (SELECT category_id FROM msdb.dbo.syscategories WHERE name = 'REPL-LogReader')