Showing posts with label maintenance. Show all posts
Showing posts with label maintenance. Show all posts

Friday, March 30, 2012

I hate the maintenance CleanUp task :=)


I have a backup database task that runs at 4 am.

I added a maintenance CleanUp task pointing to the right folder
I checked the include first-level subfolder box, and delete files based on the age of the file at task run time

I specified "delete files older than " 1 day


But the cleanup task is not working, I have to manually go a delete the files myself.

Am I missing something? should I run the maintenance task first?
and then the backup task?

make sure that your system is upgraded to SP2 and also you have installed SSIS.

Refer these links for more info

http://support.microsoft.com/default.aspx/kb/933508

http://blogs.msdn.com/sqlrem/

Madhu

|||Also you make sure to apply SP2 for the client tools as they also willbe updated with bug fixes.|||

I'm having this problem, too. I have a Maintenance Cleanup Task to remove old maintenance plan text reports that seems to "refuse" to delete the old files. The system I'm trying this on has had the GDR 3054 update applied to all components, including the clients. I've even recreated the entire maintenance plan new, and it still doesn't work. The interesting thing is that my Cleanup Task that removes old backup files is working correctly!

|||

This has been confirmed as a bug

See http://support.microsoft.com/kb/936305

Maybe by SQL Server 2008 SP2 the Maintenace Plans may have got back to being usable and reliable

Regards

Nadreck

|||

This is not a solution or an answer to what Armando is asking.

What he says (and what Nadreck and I am experiencing) is the complete refusal of the maintenance cleanup task to delete the files...at *any* time.

Your links, as well as the other replies to this topic refer to a bug where existing maintenance tasks, created before SP2 being applied, are mis-timed after SP2 is applied. In my situation, the maintenance plan was created after SP2 was applied.

By not being able to automate the cleanup of the older backup files, it makes the entire backup task (as a scheduled process) nearly worthless.

Jeff

|||

Ok, after doing a lot of searching around the net I found out a workaround (sort of).

To get the maintenance plan to actually delete files in the first level subfolders, change the extension for it to delete (in the maintenance cleanup task dialoge) to *.*

I know this isn't ideal if you store files other than your backups in some of these folders (or rename old backups a different extension to always keep them around), but it did work for me. You just need to be careful what is put in those folders.

Jeff

I hate the maintenance CleanUp task :=)


I have a backup database task that runs at 4 am.

I added a maintenance CleanUp task pointing to the right folder
I checked the include first-level subfolder box, and delete files based on the age of the file at task run time

I specified "delete files older than " 1 day


But the cleanup task is not working, I have to manually go a delete the files myself.

Am I missing something? should I run the maintenance task first?
and then the backup task?

make sure that your system is upgraded to SP2 and also you have installed SSIS.

Refer these links for more info

http://support.microsoft.com/default.aspx/kb/933508

http://blogs.msdn.com/sqlrem/

Madhu

|||Also you make sure to apply SP2 for the client tools as they also willbe updated with bug fixes.|||

I'm having this problem, too. I have a Maintenance Cleanup Task to remove old maintenance plan text reports that seems to "refuse" to delete the old files. The system I'm trying this on has had the GDR 3054 update applied to all components, including the clients. I've even recreated the entire maintenance plan new, and it still doesn't work. The interesting thing is that my Cleanup Task that removes old backup files is working correctly!

|||

This has been confirmed as a bug

See http://support.microsoft.com/kb/936305

Maybe by SQL Server 2008 SP2 the Maintenace Plans may have got back to being usable and reliable

Regards

Nadreck

|||

This is not a solution or an answer to what Armando is asking.

What he says (and what Nadreck and I am experiencing) is the complete refusal of the maintenance cleanup task to delete the files...at *any* time.

Your links, as well as the other replies to this topic refer to a bug where existing maintenance tasks, created before SP2 being applied, are mis-timed after SP2 is applied. In my situation, the maintenance plan was created after SP2 was applied.

By not being able to automate the cleanup of the older backup files, it makes the entire backup task (as a scheduled process) nearly worthless.

Jeff

|||

Ok, after doing a lot of searching around the net I found out a workaround (sort of).

To get the maintenance plan to actually delete files in the first level subfolders, change the extension for it to delete (in the maintenance cleanup task dialoge) to *.*

I know this isn't ideal if you store files other than your backups in some of these folders (or rename old backups a different extension to always keep them around), but it did work for me. You just need to be careful what is put in those folders.

Jeff

sql

Wednesday, March 28, 2012

I don't see Database Maintenance Planner in my SQL Server Enterorise Manager

Strange..... Anyways, is it possible to add the tool for Database Maintenance Planner to the existing DB installation?

If so, how do I do that? Would someone please help me on this?

Thanks a lot in advance.

Chris.

Hi Chris. If you don't see it, that could mean you aren't logged in as a sysadmin, they are the only logins that are allowed to view/modify maintanence plans.

It should be visible under the Management node in Enterprise manager, then a node called 'Database Maintanence Plans'. You should never see it under a specific database if that's where you are looking, not sure from your post if that may be where you were headed...

As for adding it to an existing installation, that's not really something that ever would need to be done...it's part of all installations, so it should already exist if the installation was successfull to any degree.

HTH,

|||

Having read your kind explanation above, it really make sense!

With confidence backed by your explanation, I will look into the SQL installation (which I did not install myself) and login users on Monday.

Once again, thank you so so so much, Chad. I wish I could buy you a drink!

Chris,

|||No problem Chris, glad to help. Repost if you still continue to have issues finding it...I'd take that drink if I could too!sql

Monday, March 26, 2012

I could not set complete backup tag.

I tried to create "Database Maintenance Plan" for MSDE server by Enterprise
Manager. However I could not set complete backup tag. (see attachment)
Please give me advice to fix this. I want to take a back up correctry.
Yoyako.
hi,
Yoyako wrote:
> I tried to create "Database Maintenance Plan" for MSDE server by
> Enterprise Manager. However I could not set complete backup tag. (see
> attachment)
> Please give me advice to fix this. I want to take a back up correctry.
> Yoyako.
please excuse my poor english, but I was not able to understand your needs..
Andrea Montanari (Microsoft MVP - SQL Server)
http://www.asql.biz/DbaMgr.shtmhttp://italy.mvps.org
DbaMgr2k ver 0.11.1 - DbaMgr ver 0.57.0
(my vb6+sql-dmo little try to provide MS MSDE 1.0 and MSDE 2000 a visual
interface)
-- remove DMO to reply
|||Thank you for you reply.
I want to make a "Dtabase Maintenance Plan" for our MSDE data base.
However I could not to complete the this plan. Because there is no
infomation of "Remove files older than:" and "Bckup files extention" in
Database Maintenance Plan Wizard.
Is it difficult to use "Dtabase Maintenance Plan" in SQL Enterprise Mgr to
create "Database maintenance Plan?
Yoyako
"Andrea Montanari" wrote:

> hi,
> Yoyako wrote:
> please excuse my poor english, but I was not able to understand your needs..
> --
> Andrea Montanari (Microsoft MVP - SQL Server)
> http://www.asql.biz/DbaMgr.shtmhttp://italy.mvps.org
> DbaMgr2k ver 0.11.1 - DbaMgr ver 0.57.0
> (my vb6+sql-dmo little try to provide MS MSDE 1.0 and MSDE 2000 a visual
> interface)
> -- remove DMO to reply
>
>
|||hi,
actually no Maintenace Plan Wizard is available for MSDE... I'd go for
standard SQL Server Agent managed jobs...
more... Maintenace Plan suffer from many headake "features"
Andrea Montanari (Microsoft MVP - SQL Server)
http://www.asql.biz/DbaMgr.shtmhttp://italy.mvps.org
DbaMgr2k ver 0.11.1 - DbaMgr ver 0.57.0
(my vb6+sql-dmo little try to provide MS MSDE 1.0 and MSDE 2000 a visual
interface)
-- remove DMO to reply
Yoyako wrote:[vbcol=seagreen]
> Thank you for you reply.
> I want to make a "Dtabase Maintenance Plan" for our MSDE data base.
> However I could not to complete the this plan. Because there is no
> infomation of "Remove files older than:" and "Bckup files extention"
> in Database Maintenance Plan Wizard.
> Is it difficult to use "Dtabase Maintenance Plan" in SQL Enterprise
> Mgr to create "Database maintenance Plan?
> Yoyako
> "Andrea Montanari" wrote:
|||Thank you for your quick response.
I will convert from MSDE to SQL next year.
"Yoyako" wrote:

> I tried to create "Database Maintenance Plan" for MSDE server by Enterprise
> Manager. However I could not set complete backup tag. (see attachment)
> Please give me advice to fix this. I want to take a back up correctry.
> Yoyako.