T-SQL to check what backup jobs are setup

  • Hi,

    does any body have a piece of T-SQL that will run on 2005 to tell me what jobs are setup on my sql server and how often the job is set to run?

    Thanks in Advance

  • hi joe. this snippet should help get you started.

    select sj.name, sjs.next_run_date, sjs.next_run_time

    from msdb..sysjobs sj

    inner join msdb..sysjobschedules sjs on sj.job_id = sjs.job_id

    inner join msdb..sysschedules ss on ss.schedule_id = sjs.schedule_id

    order by sj.name

    ----------------------
    https://thomaslarock.com

  • Hi Thomas,

    thank you very much.

    Joe

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

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