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
SSCertifiable
SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)

Group: General Forum Members
Points: 6759 Visits: 3501
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
Johnson Welch
Johnson Welch
SSCarpal Tunnel
SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)

Group: General Forum Members
Points: 4611 Visits: 1166
As far as I know the problem might be of permissions. Please check and verify.
SQL Galaxy
SQL Galaxy
SSCertifiable
SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)

Group: General Forum Members
Points: 6759 Visits: 3501
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
Old Hand
Old Hand (340 reputation)Old Hand (340 reputation)Old Hand (340 reputation)Old Hand (340 reputation)Old Hand (340 reputation)Old Hand (340 reputation)Old Hand (340 reputation)Old Hand (340 reputation)

Group: General Forum Members
Points: 340 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
SSCertifiable
SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)

Group: General Forum Members
Points: 6759 Visits: 3501
That backup job run at under owner of 'servername\Administrator'
WorkasDBA
WorkasDBA
Old Hand
Old Hand (340 reputation)Old Hand (340 reputation)Old Hand (340 reputation)Old Hand (340 reputation)Old Hand (340 reputation)Old Hand (340 reputation)Old Hand (340 reputation)Old Hand (340 reputation)

Group: General Forum Members
Points: 340 Visits: 122
What is the server role and permission for that id?
Johnson Welch
Johnson Welch
SSCarpal Tunnel
SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)

Group: General Forum Members
Points: 4611 Visits: 1166
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