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


Problem in Maintenence Cleanup Task -- urgent


Problem in Maintenence Cleanup Task -- urgent

Author
Message
venu_ksheerasagaram
venu_ksheerasagaram
SSC Veteran
SSC Veteran (293 reputation)SSC Veteran (293 reputation)SSC Veteran (293 reputation)SSC Veteran (293 reputation)SSC Veteran (293 reputation)SSC Veteran (293 reputation)SSC Veteran (293 reputation)SSC Veteran (293 reputation)

Group: General Forum Members
Points: 293 Visits: 243
Hi every body,

I just create a Maintenence Cleanup Task and connect to the Maintenence Plan backup.The backup was creating successfully but the deleting of 1 day old files was not getting done.
I gave the start time as 12:00:00 Am to 11:59:59 PM yesterday itself(it means to run for 24 hours).But its not deleting the back up file which was created on yesterday 12:00:14 pm.

Venu Gopal.K
Software Engineer
INDIA
Eswin
Eswin
SSCrazy
SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)

Group: General Forum Members
Points: 2349 Visits: 1078
Actually usin Maintenance plan Wizard you separately schedule multiple maintenance task.

While creating the maintenance cleanup task did you give the folder path and file extensions properly.
Did you set on success precedence constraint

Tanx :-D
venu_ksheerasagaram
venu_ksheerasagaram
SSC Veteran
SSC Veteran (293 reputation)SSC Veteran (293 reputation)SSC Veteran (293 reputation)SSC Veteran (293 reputation)SSC Veteran (293 reputation)SSC Veteran (293 reputation)SSC Veteran (293 reputation)SSC Veteran (293 reputation)

Group: General Forum Members
Points: 293 Visits: 243
I am not using the Minatenence plan whizard. I just create a new MP by right click the Maintenance tab and selecting New Maintenence plan tab.
Tell me exactly what "Did you set on success precedence constraint" this mean?


Thank u.

Venu Gopal.K
Software Engineer
INDIA
venu_ksheerasagaram
venu_ksheerasagaram
SSC Veteran
SSC Veteran (293 reputation)SSC Veteran (293 reputation)SSC Veteran (293 reputation)SSC Veteran (293 reputation)SSC Veteran (293 reputation)SSC Veteran (293 reputation)SSC Veteran (293 reputation)SSC Veteran (293 reputation)

Group: General Forum Members
Points: 293 Visits: 243
I am not using the Minatenence plan whizard. I just create a new MP by right click the Maintenance tab and selecting New Maintenence plan tab.
Tell me exactly what "Did you set on success precedence constraint" this mean?


Thank u.

Venu Gopal.K
Software Engineer
INDIA
Eswin
Eswin
SSCrazy
SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)

Group: General Forum Members
Points: 2349 Visits: 1078
That is the connection between the two jobs in your maintenance plan .

On success/failure/completion of the first job the work flows to the next job.

Tanx :-D
Mohit K. Gupta
Mohit K. Gupta
SSCrazy
SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)

Group: General Forum Members
Points: 2284 Visits: 1089
Hi Venu,

Two reasons your backups might not be deleting ...

1) you are running SQL Server 2005 version which had a glitch in the "Maintenance Cleanup" task.
2) Your backup time is set to 24 hours, so if the files were even 1 second too late they will not delete. Meaning...

Lets say your backup starts at 12:00AM and Finishes at 12:15AM.

Your delete starts then it will look for all files starting at 12:15:01AM yesterday. If the the file was finished creating at 12:15:00AM it will not delete... because it's 1 second short of reaching 24 hours. I usually set my hours delay to 20 hours to delete.

Thanks.

---

Mohit K. Gupta, MCITP: Database Administrator (2005), My Blog, Twitter: @SQLCAN.
Microsoft FTE - SQL Server PFE

* Some time its the search that counts, not the finding...
* I didn't think so, but if I was wrong, I was wrong. I'd rather do something, and make a mistake than be frightened and be doing nothing. Smooooth


How to ask for help .. Read Best Practices here.
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