RE: sqlmaint not deleting correctly -
11-08-2004
, 11:37 AM
In most cases I've seen this issue before Rob, it usually has to do with 2
things -
1. The account that's executing the sqlmaint to delete the old backups from
that particular folder doesnt have the necessary rights, OR there was a
Read-Only attribute or something like that changed on the folder.
2. There could be some other process that currently has an exclusive lock
at the same time that this sqlmaint was trying to delete the files.
SUGGESTED ACTION PLAN
=========================
1. Does sqlmaint delete files off other subfolders? In the same drive,same
parent folder? On a different drive?
2. Try downloading filemon from www.sysinternals.com and see which other
process perhaps has a lock on this drive when sqlmaint runs. It could be
that sqlmaint is blocked by that process and hence cannot access those
files to delete.
3. Check account permissions of sqlmaint - make sure that it has admin
rights to the drive/folder where the files are located.
Cheers,
Vikram Jayaram
Microsoft, SQL Server
This posting is provided "AS IS" with no warranties, and confers no rights.
Subscribe to MSDN & use http://msdn.microsoft.com/newsgroups. |