﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Article Discussions / Article Discussions by Author / Discuss content posted by Mark Marinovic  / Custom Maintenance Plans - the T-SQL way / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Mon, 20 May 2013 08:05:46 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Custom Maintenance Plans - the T-SQL way</title><link>http://www.sqlservercentral.com/Forums/Topic722745-1555-1.aspx</link><description>[quote][b]Ralf Dietrich (6/21/2009)[/b][hr]Hi Mark,why did you prefer custom maintenance plans over custom SQL scripts? (Yes it is a very interesting solution you showed up! - thx!)I've seen so many bugs in maintenance plans so I prefer not to use them. The most recent bug I've seen was, that it was correctly scheduled (at night) but was executed at a complete other time (mostly during business hours) :-(I could not believe it - but I've it seen 1 month ago! With T-SQL scripts I had never such errors (for more than 10 years now)Ralf[/quote]Ralf:Like you, I have seen many bugs/idiosyncrasies in Maintenance Plans over the years.  To this point, I dealt with them.In this particular case, necessity being the mother of invention, I needed to perform all of the standard MP steps, but needed to do it for a certain, fluid subset of 3rd party databases over which I have no control.I used the exact SQL commands that the native plans use for consistency's sake.  Of course, you can perform your steps hoever you like, but I wanted to create a good starting point.Hope that answers your question!MJM</description><pubDate>Mon, 29 Jun 2009 14:02:53 GMT</pubDate><dc:creator>Mark Marinovic</dc:creator></item><item><title>RE: Custom Maintenance Plans - the T-SQL way</title><link>http://www.sqlservercentral.com/Forums/Topic722745-1555-1.aspx</link><description>Hi Mark,why did you prefer custom maintenance plans over custom SQL scripts? (Yes it is a very interesting solution you showed up! - thx!)I've seen so many bugs in maintenance plans so I prefer not to use them. The most recent bug I've seen was, that it was correctly scheduled (at night) but was executed at a complete other time (mostly during business hours) :-(I could not believe it - but I've it seen 1 month ago! With T-SQL scripts I had never such errors (for more than 10 years now)Ralf</description><pubDate>Sun, 21 Jun 2009 14:25:06 GMT</pubDate><dc:creator>Ralf Dietrich</dc:creator></item><item><title>RE: Custom Maintenance Plans - the T-SQL way</title><link>http://www.sqlservercentral.com/Forums/Topic722745-1555-1.aspx</link><description>***************For everyone's convenience, the SQL scripts and documentation is attached to this post.***************Please let me know if you have any questions.Thank you!Mark</description><pubDate>Tue, 16 Jun 2009 08:42:32 GMT</pubDate><dc:creator>Mark Marinovic</dc:creator></item><item><title>RE: Custom Maintenance Plans - the T-SQL way</title><link>http://www.sqlservercentral.com/Forums/Topic722745-1555-1.aspx</link><description>Mark,   Very useful and effective article. :-) Can you share the CustomMP_WithDBMail.sql  file to my mail id which I mentioned below?jeykumar.net@gmail.comRegards,Jey</description><pubDate>Tue, 09 Jun 2009 06:34:33 GMT</pubDate><dc:creator>Jeyakumar-447522</dc:creator></item><item><title>RE: Custom Maintenance Plans - the T-SQL way</title><link>http://www.sqlservercentral.com/Forums/Topic722745-1555-1.aspx</link><description>Very very nice one Mark!It's very usefull if you have large number of db.How can we get the DB_Mail script?Thanks,C</description><pubDate>Mon, 08 Jun 2009 17:04:52 GMT</pubDate><dc:creator>Cristi R</dc:creator></item><item><title>Custom Maintenance Plans - the T-SQL way</title><link>http://www.sqlservercentral.com/Forums/Topic722745-1555-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/scripts/Maintenance/66864/"&gt;Custom Maintenance Plans - the T-SQL way&lt;/A&gt;[/B]</description><pubDate>Sun, 24 May 2009 11:17:28 GMT</pubDate><dc:creator>Mark Marinovic</dc:creator></item></channel></rss>