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


.BAK file not deleted by Management plan Clean-up task schedule?


.BAK file not deleted by Management plan Clean-up task schedule?

Author
Message
SQL Galaxy
SQL Galaxy
SSCoach
SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)

Group: General Forum Members
Points: 17355 Visits: 3517
Backup files are not deleted by automatically, but as per backup logs Cleanup task working without any errors.

I have verified that server side,
1. Event viewer - there is no errors
2. Error log - there is no errors
3. Job (SQL Server Agent > Jobs), job running under windows authentication

Executed manually as below command that also working without any errors, why that backup files are not deleted? If anyone facing same issues or how to fix it?

Maintenance Cleanup on Local server connection
Cleanup Database Backup files
Age: Older than 5 Days
Task start: 2014-08-26T00:00:30.
Task end: 2014-08-26T00:00:50.
Success
Command:EXECUTE master.dbo.xp_delete_file 0,N''E:\SQL_DB_Backup\Full_Backup'',N''bak'',N''2014-08-21T00:00:30'',1
Lincoln Burrows
Lincoln Burrows
SSChampion
SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)

Group: General Forum Members
Points: 10671 Visits: 1226
As far as I know the problem might be of permissions. Please check and verify.
SQL Galaxy
SQL Galaxy
SSCoach
SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)

Group: General Forum Members
Points: 17355 Visits: 3517
For the permission issues, where should i check at server side?

SQL Engine and Agent service running under Network service account.

Does Backup folder need to check? but this folder NT Service account not avilable at seurity tap.
WorkasDBA
WorkasDBA
SSC Eights!
SSC Eights! (860 reputation)SSC Eights! (860 reputation)SSC Eights! (860 reputation)SSC Eights! (860 reputation)SSC Eights! (860 reputation)SSC Eights! (860 reputation)SSC Eights! (860 reputation)SSC Eights! (860 reputation)

Group: General Forum Members
Points: 860 Visits: 122
What is the id that the job is set up to RUN AS and what are the roles/permissions for that id?
SQL Galaxy
SQL Galaxy
SSCoach
SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)

Group: General Forum Members
Points: 17355 Visits: 3517
That backup job run at under owner of 'servername\Administrator'
WorkasDBA
WorkasDBA
SSC Eights!
SSC Eights! (860 reputation)SSC Eights! (860 reputation)SSC Eights! (860 reputation)SSC Eights! (860 reputation)SSC Eights! (860 reputation)SSC Eights! (860 reputation)SSC Eights! (860 reputation)SSC Eights! (860 reputation)

Group: General Forum Members
Points: 860 Visits: 122
What is the server role and permission for that id?
Lincoln Burrows
Lincoln Burrows
SSChampion
SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)

Group: General Forum Members
Points: 10671 Visits: 1226
Please check this blog here might be helpful.
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