Maintance Plan Backup Location

  • FROM WHERE WE CAN GET THE MAINTAINCE PLAN DB BACK AND TRAN LOG BACKUO LOCATION.

    SCENE:

    WE HAVE AROUND 10 DATABASE AND MANY MAINTANCE PLANS FOR THE BACKUP AND TRANSACTION LOG BACKUP.

    I WROTE SCRIPT TO GET THE WHAT KIND OF BACKUP IS HAPPENING AT REPECTIVE DATABASE BUT I AM NOT GETTING WHERE IS (LOCATION OR PATH)

    BACKUPS ARE HAPPENING (HINT: WHEN WE CREATE MAINTAINCE PLAN WE SELECT PATH FOR BACKUP,I NEED THAT LOCATION THROUGH SCRIPTS).

    I NEED WHICH SYSTEM TABLE WILL HAVE THE LOCATION OF THE MAINTAINCE PLANS)

    THANKS

  • The location plan is stored in MSDB. You can view it in Enterprise Manager>Management>Jobs.

    -SQLBill

  • Hi ,

    Here is the query. i need backup location for the same.

    use master

    select --A.Plan_id,B.Job_Id

    A.Database_Name,C.Name

    from sysdbmaintplan_databases A , sysdbmaintplan_jobs B , sysjobs C

    where A.Plan_Id = B.Plan_Id

    and C.job_id = B.job_id

    order by Database_Name,Name

  • You can get this info from the "command" column of "sysjobsteps" table

    Jayesh

  • Thanks

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

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