Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Export Maintenance plans form SQL 2005 to 2008 Expand / Collapse
Author
Message
Posted Tuesday, May 18, 2010 2:36 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, September 17, 2014 10:03 AM
Points: 111, Visits: 483
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
Post #923378
Posted Tuesday, May 18, 2010 1:20 PM
SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Wednesday, September 17, 2014 7:26 AM
Points: 4,358, Visits: 9,536
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
Problems are opportunites brilliantly disguised as insurmountable obstacles.

How to post questions to get better answers faster
Managing Transaction Logs
Post #923859
Posted Wednesday, May 19, 2010 12:36 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, September 17, 2014 10:03 AM
Points: 111, Visits: 483
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
Post #924074
Posted Thursday, January 20, 2011 12:22 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, July 1, 2014 10:33 PM
Points: 5, Visits: 15
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.
Post #1050542
Posted Friday, January 21, 2011 8:25 AM


SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Yesterday @ 3:58 PM
Points: 4,359, Visits: 6,195
1) 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 at GMail
Post #1051582
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse