How to save a SQL Server Maintenance Plan within a Visual Studio Database Project -


having created sql server maintenance plan in sql server 2008 r2 instance, how can import definitions visual studio 2013 ssdt database project?

i don't mind using pre- , post-deployment scripts if helps want in database project , able build project in vs , able deploy either new instance of plan, or able synchronize existing plan instance definitions in database project. also, drop , re-create entirely acceptable.

does else know how ?

first of maintenance plans not supported ssdt.

you can export manually xml template file , try write sql/batch post deploy scripts deploy it. can find general instruction here (read comments also): https://robertbigec.wordpress.com/2013/10/03/automating-deployment-of-sql-server-maintenance-plans/

one note: exported xml template contains specific values such server name or path backup/log file locations. might want write custom script these values target machine , replace in xml file.


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - How to Hide Date Menu from Datepicker in yii2 -