SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Working Around 2005 Maintenance Plans


Working Around 2005 Maintenance Plans

Author
Message
Aaron Ingold
Aaron Ingold
SSCommitted
SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)

Group: General Forum Members
Points: 1947 Visits: 222
Comments posted to this topic are about the content posted at http://www.sqlservercentral.com/columnists/aingold/workingaround2005maintenanceplans.asp
Kevin O'Donovan
Kevin O'Donovan
SSC-Enthusiastic
SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)

Group: General Forum Members
Points: 169 Visits: 84
Hi,
I might have missd something, but couldn't you just use a Maintenance Cleanup Task to delete old backups? That's how we have it set up here, and it seems to do the trick. As I recall, you aren't offered one of these in the wizard, but you can drag them into your maintenance plan from the toolbox.



Aaron Ingold
Aaron Ingold
SSCommitted
SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)

Group: General Forum Members
Points: 1947 Visits: 222
That is a very good point which I had neglected to mention! You read an article a thousand times thinking you've addressed everything...

In our situation we wanted to stick with an existing departmental guideline which puts each backup into its own subdirectory. While it seems inconsequential there are certain rules and precedents on the server which rely upon this setup. In my experimentation I couldn't get the maintenance cleanup task to traverse subdirectories properly by pointing to the parent directory (unless I was willing to create a new task for each subdirectory).
Kevin O'Donovan
Kevin O'Donovan
SSC-Enthusiastic
SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)

Group: General Forum Members
Points: 169 Visits: 84
Ain't it always the way :-)

Yes, the lack of support for cleaning a directory tree is a strange omission. I believe we ended up writing a tool to generate the package automatically. There are a few questionable aspects of the interface, as I recall.

Very slightly off topic, but what is the point of naming schedules for the maintenance tasks? Now if I could selected an already created schedule for a different task,... Doubtless I've missed something obvious though!



Aaron Ingold
Aaron Ingold
SSCommitted
SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)

Group: General Forum Members
Points: 1947 Visits: 222
Yes, I originally was playing around with using vb or perl to clean up the backup files, however I ended up wanting to try to keep everything inside SQL. The other thing was that if the traditional maintenance plans failed the logs were woefully inadequate. With this type of framework you can use more standard error trapping and log those using RAISERROR or offload them to a table if you so desire.

I don't know if I understand your last question. If you're asking about re-using schedules for different jobs you can do so via the GUI by clicking the "Pick..." button on the Schedules page in your job or by using msdb.dbo.sp_attach_schedule if you're scripting things out. Schedules can be found listed in msdb.dbo.sysschedules.
Kevin O'Donovan
Kevin O'Donovan
SSC-Enthusiastic
SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)

Group: General Forum Members
Points: 169 Visits: 84
Ah, I'd not noticed it there - I'd been looking at it from the maintenance plan editor, where you don't appear to be able to select, only create



Gops Dwarakanathan
Gops Dwarakanathan
Grasshopper
Grasshopper (22 reputation)Grasshopper (22 reputation)Grasshopper (22 reputation)Grasshopper (22 reputation)Grasshopper (22 reputation)Grasshopper (22 reputation)Grasshopper (22 reputation)Grasshopper (22 reputation)

Group: General Forum Members
Points: 22 Visits: 1

We came across several postings in Forums about Maintenaceplan cleanup task not deleting the backup files if backups of databases were created under separate folders. This helped us take immediate action to address it in our service pack(SP).

This issue is now addressed in Service Pack 1. The private beta of SP1 is released and public beta release of SP1 is expected to be sometime this month.

Thanks for all your feedback and we hear and value every feedback we get!

Gops Dwarak, Program Manager, SQL Server Tools Team, Microsoft


Aaron Ingold
Aaron Ingold
SSCommitted
SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)

Group: General Forum Members
Points: 1947 Visits: 222
That's great news to hear! Thank you very much for being so responsive to the community. I knew that there would be an official solution from MS dwn the line, but I didn't know it would come so quickly.
Michael Carey-400169
Michael Carey-400169
SSC Journeyman
SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)

Group: General Forum Members
Points: 84 Visits: 1

My particular backup problem is that when I do a full backup on some transaction-heavy databases that have their recovery models set to Full, the first hourly transaction log - .trn file - after the full backup is almost the same size as the .bak file.

Subsequent hourly .trn files are nice and small.

I wanted all the .trn files to be small, to conserve drive space, so I tried setting the recovery models to bulk_logged, then do the .trn backup, then setting the recovery models back to Full, but this three-step approach seems to either take forever, or fail.

Any ideas would be appreciated.

Thanks, Mike


Youri S. Pikulin
Youri S. Pikulin
SSC-Enthusiastic
SSC-Enthusiastic (113 reputation)SSC-Enthusiastic (113 reputation)SSC-Enthusiastic (113 reputation)SSC-Enthusiastic (113 reputation)SSC-Enthusiastic (113 reputation)SSC-Enthusiastic (113 reputation)SSC-Enthusiastic (113 reputation)SSC-Enthusiastic (113 reputation)

Group: General Forum Members
Points: 113 Visits: 805
I cannot download the code:
"
Search for any content tagged Administration & workingaround2005maintenanceplans & 2282 & bch_article_work_v2.txt
Sorry, nothing found for this search
"
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search