SQL Jobs

  • Hi guys,

    I  want to retrieve information of the existing SQL Jobs using a T-SQL query. Can any of the system tables or SPs be used for this purpose?

    Thanks,

    Hari

     

     

     


    Kindest Regards,

    Hari

  • Have a look in the MSDB Database. Tables such as sysjobs, sysjobhistory etc.


    Kindest Regards,

  • Thanks, Just had a look

    -Hari


    Kindest Regards,

    Hari

  • use msdb

    go

    select * from sysjobs

    select * from sysjobsteps

    select * from sysjobserver

    select * from sysjobhistory

     


    Helen
    --------------------------------
    Are you a born again. He is Jehova Jirah unto me

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

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