Re: How do I create a script to add the maintenance plans to sql serve

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



maintenance plans are now SSIS (former DTS) packages,
open SSIS, this tool will enable you to create packages that you can then
deploy to any server.

"victoria" <victoria@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4D6EC150-CB2A-479A-B882-99934D0A21E7@xxxxxxxxxxxxxxxx
I have been looking to see if anyone has written a script to create the
maintenance plans in SQL 2005. The previous commands like
sp_add_maintenance_plan have all been depreciated. It appears Microsoft
don't
want you to script the creation. By having it scripted makes it easier to
ensure the plans are set up the same on all servers and less time
consuming
to install.

I tried the option of exporting and import however this doesn't work in so
far as it doesn't appear to keep the local connection or the databases
selected in the plan e.g., msdb or all user databases. It would be much
quicker to be able to run this as part of the auto install.

It appears to use this dll Microsoft.SqlServer.MaintenancePlanTasks.dll
and
other scripts I have seen runing the backend are
sp_dts_getfolder
sp_dts_addfolder
sp_dts_deletefolder
sp_dts_renamefolder
sp_dts_listfolders
sp_dts_getpackage
sp_dts_putpackage
sp_dts_deletepackage
sp_dts_listpackages
sp_dts_getpackageroles
sp_dts_setpackageroles

Does anyone have ideas on how to script out the maintenance plan creation?



.



Relevant Pages

  • Multiple DB Maintenance Creation?
    ... Is there away to generate a script from DB Maintenance plans creation? ... This will allow me to use the script to create many other DB maintenance plans. ... Brent ...
    (microsoft.public.sqlserver.server)
  • Re: Scripting out DB Maintenance Plan for mulitple databases.
    ... Here is an article that will give you some steps to move maintenance plans ... Need SQL Server Examples check out my website at ... a instance that has about 100 databases on it. ... Is there a way to script out a plan ...
    (microsoft.public.sqlserver.server)
  • Re: [opensuse] Local cache of updates, installed programs in openSUSE
    ... don't have the same package config, I created a "Generic" openSuSE repository ... script to separate all the files by architecture and then upload to the server ... server instead of from the internet. ... and that holds updated packages for rpms of all architectures. ...
    (SuSE)
  • Re: Runaway CPU
    ... Thanks, Rick. ... No maintenance plans are running. ... reviewed the trace files and can see nothing that would ... >> CPU on a very powerful server. ...
    (microsoft.public.sqlserver.server)
  • Re: issue following failed SP2 install
    ... You may be suffering from the SP2 bugs with maintenance plans. ... Happily, the long delay in delivering CUs to requestors has been automated, ... plans locally on the server. ...
    (microsoft.public.sqlserver.setup)