Results 1 to 5 of 5

Thread: Auto-Creating DB Maint Plans?

  1. #1
    Join Date
    Feb 2003
    Location
    Aussie Land
    Posts
    114

    Auto-Creating DB Maint Plans?

    Hi Guys,

    Does anyone know an easier way to create DB Maint Plans instead of having to create each one manually?
    i.e. Copy Maint Plans from 1 server to another automatically.
    Does anyone know of a quick export method.

    thnx in advance.

  2. #2
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    here is a hint.

    select * from msdb..sysdbmaintplan_databases
    select * from msdb..sysdbmaintplan_history
    select * from msdb..sysdbmaintplan_jobs
    select * from msdb..sysdbmaintplans

  3. #3
    Join Date
    Sep 2002
    Posts
    5,938
    Don't think you can just copy the plan to another server and it works right away. DB name may different for instance.

  4. #4
    Join Date
    Sep 2002
    Posts
    169
    As well as the data that is in the sysdbmaint tables, some of the definition of the of the maintenance plan is actually in the related sql agent job(s).

    Use profiler to see what enterprise manager does when it gets the properties for a maintenance plan.

  5. #5
    Join Date
    Feb 2003
    Location
    Aussie Land
    Posts
    114
    thanks guys.
    for the sake of sanity, im just gonna create them manually.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •