SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Script a maintenance plan
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

CanadaDBA
Aged Yak Warrior

Canada
583 Posts

Posted - 05/21/2008 :  09:34:42  Show Profile  Reply with Quote
How can I script a maintenance plan in SQL Server 2005?


Canada DBA

sodeep
Flowing Fount of Yak Knowledge

USA
7174 Posts

Posted - 05/21/2008 :  14:45:23  Show Profile  Reply with Quote
you can't but you can script the job created through Maintenance plan. In 2005, It works like a SSIS package so you change configuration and deploy wherever you want i.e to other server and file system.
Go to Top of Page

rmiao
Flowing Fount of Yak Knowledge

USA
7266 Posts

Posted - 05/21/2008 :  22:12:32  Show Profile  Reply with Quote
Jobs will not work if there is no package on target server.
Go to Top of Page

mdubey
Posting Yak Master

USA
133 Posts

Posted - 05/26/2008 :  20:16:08  Show Profile  Reply with Quote
You can not script for Maintanance Plan(MP), but you can script out an indivual Job.

In SQL 2005 there is new and great feature that you can create MP in the form of SSIS package. means you can add as much information you need for the job.

Manoj
MCP, MCTS
Go to Top of Page

sodeep
Flowing Fount of Yak Knowledge

USA
7174 Posts

Posted - 05/26/2008 :  22:10:59  Show Profile  Reply with Quote
????
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.09 seconds. Powered By: Snitz Forums 2000