블로그는 나의 힘!
[ Programing ]/Database2020. 2. 10. 17:19

MSSQL 에이전트 작업 스케줄 (JOB, 일정) 확인하기.

 

 

SELECT
     JOB.job_id, JOB.[name], JOB.[enabled], [description], JOB.date_created, JOB.date_modified ,
     JST.step_id, JST.step_name, JST.subsystem, JST.command
FROM msdb.dbo.sysjobs JOB
     INNER JOIN msdb.dbo.sysjobschedules JSC ON JOB.job_id = JSC.job_id
     INNER JOIN msdb.dbo.sysschedules SDU ON JSC.schedule_id = SDU.schedule_id
     INNER JOIN msdb.dbo.sysjobsteps JST ON JOB.job_id = JST.job_id
ORDER BY JOB.[name];

 

 

자동 실행 되는 프로시저 조회.

 

 

Posted by Mister_Q