Export Maintenance plans form SQL 2005 to 2008

  • We have done side by side upgrade from SQL 2005 to 2008, now we need to migrate maintenance plans, is there any why to migrate them using T-SQL or any other way other than manually crating maintenance plans, please let me know.

    Thanks,

    Nag

    Nag
    ------------------------------------------------
    How to get the best help on a forum

    http://www.sqlservercentral.com/articles/Best+Practices/61537

  • There really isn't any easy way to copy/transfer maintenance plans from 2005 to 2008. It will take less time to just manually create them as needed.

    Jeffrey Williams
    “We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”

    ― Charles R. Swindoll

    How to post questions to get better answers faster
    Managing Transaction Logs

  • Hay Jeff thanks for the response, I was bit sad that no one responded to my request.

    once again thanks for responding.

    Nag.

    Nag
    ------------------------------------------------
    How to get the best help on a forum

    http://www.sqlservercentral.com/articles/Best+Practices/61537

  • I found this information on another board. This might be a solution but I don't know if it works for SQL Server 2008.

    Import and Export SQL 2005 Maintenance plans

    The way SQL 2005 produces Maintenance plans is very different from SQL 2000. Instead of using the extended stored procedure xp_sqlmaint to execute and the system tables of the MSDB database to store the package – SQL 2005 uses SSIS (SQL Server Integration Services) to create and store the Maintenance plans.

    To Export an existing maintenance plan from an SQL Server 2005

    - Click connect in the Object Explorer

    - Select "Integration Services"

    - Enter credentials for the server

    - Open the folder: "Stored Packages" -> "MSDB" -> "Maintenance Plans"

    - Right click the package you want to export

    - Select Export package

    - If you want to export the package to another server or edit it – using BIDS (SQL Business Intelligence Studio) – select "File system" in the Package Placement dropdown menu.

    To Import or copy an existing maintenance plan from one server to another

    - On the server you want the maintenance plan copied TO.

    - Click connect in the Object Explorer

    - Select "Integration Services"

    - Enter credentials for the server

    - Open the folder: "Stored Packages" -> "MSDB"

    - Right Click the folder "Maintenance Plans" and select "Import Package"

    - In the dropdown "Package Placement" select SQL Server

    - Enter the name of the SQL server where the source maintenance package exists.

    - Click the … besides the Package Placement box and select the package you want to import from the Maintenance Plan folder.

    Also found a Script but have no idea how to actually make the export/import.

    USE MSDB

    SELECT name

    ,PlanXML=CAST(CAST(packagedata AS VARBINARY(MAX)) AS XML)

    FROM sysdtspackages90

    Note: In SQL Server 2008 you may need to use sysssispackages table instead of sysdtspackages90.

  • 1) http://www.pragmaticworks.com might have a tool to help with this.

    2) please take a look at ola.hallengren.com for a FREE suite of scripts to help you move away from maintenance packages altogether.

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

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

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