|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Friday, September 14, 2012 11:26 AM
Points: 442,
Visits: 526
|
|
Our dev database server is Windows 2000 SP3. Every so often we hit this error message in a maint plan when trying to delete an old database backup file: "Cannot delete whatever_20051114_015214.bak: Access is denied. The source file is in use." Each time, it happens at 1 a.m., when nothing else obvious is running on the system. Our usual fix is to bounce the server. Is there a better solution to this? Thanks.
There is no "i" in team, but idiot has two.
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Wednesday, May 30, 2012 8:02 AM
Points: 302,
Visits: 294
|
|
I have had the same problem recently with one of our servers. I tried stopping the SQL Services and agent seperatly but that did not fix the problem. We ended up rebooting the server and that did correct the problem. In the end the server was rebuilt anyway and the problem has not come back since. While researching the problem I did find a number of software utilitites out there that can detect which process has locked the file but I never tried any of them.
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Thursday, April 18, 2013 8:13 AM
Points: 92,
Visits: 222
|
|
Is there a tape backup application (EDM, Legato, etc.) that is running at this time? If the file is being backed up to tape at this same time, that would explain why the maint plan can't get a hold of it to delete it.
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Friday, May 17, 2013 2:11 PM
Points: 3,108,
Visits: 2,114
|
|
You should also look into anti-virus software. Additionally, if you are using a SAN or NAS, there may be volume replicating servi ces executing. However you can actually delete the file without rebooting - of course you'll need a little help ... the Winternals Process Viewer (it's free !) ... it's just an executable and a help file (no installation or reboot needed) ... it will allow you to look for the process or file handle that has the file and you can then either kill the process or if the process is already dead, close the file handle ... then fou can delete the file.
Regards Rudy Komacsar Senior Database Administrator
"Ave Caesar! - Morituri te salutamus."
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Thursday, October 11, 2012 6:44 AM
Points: 4,
Visits: 52
|
|
Long Path Tool helped me in this situation. http://PathTooDeep.com
|
|
|
|