Cannot copy backup. The process cannot access the file because another process has locked a portion of the file.

I have a .BAK file that I like to copy to another server. The .BAK file is 26GB. When I copy it, I receive the following error and the file is not copied:

Cannot copy backup. The process cannot access the file because another process has locked a portion of the file.

Any suggestions on how to copy the file? I am using SQL Server 2005 and Windows 2003 Server.

Thanks
gtrappAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Raja Jegan RSQL Server DBA & Architect, EE Solution GuideCommented:
If it is a backup set, check whether any backup or restore operations are going on from that backup set ( Backup set holds multiple backups).
Or else check for any other Windows process like De fragmentation running on the disk which might lock your backup file.
0
mds-cosCommented:
Sometimes Windows gets confused.  It happens much less frequently nowdays than it did back in 3.5 and 4.0 days....but still does on occasion.

After checking rrjegan17 suggestion, if you find there are not current processes running that are keeping the file locked, reboot the server and try your copy again.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gtrappAuthor Commented:
Its not a backup set. I selected to overwrite all existing backup sets.

I can not find a defrag process running on the server, although there is a nightly process on the server for defragging.

I will try rebooting the server.
0
IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

Raja Jegan RSQL Server DBA & Architect, EE Solution GuideCommented:
>> Its not a backup set. I selected to overwrite all existing backup sets.

If so, then check whether you have a backup job scheduled in your maintenance plan accessing this file..
0
gtrappAuthor Commented:
I ran the backup manually.
0
Raja Jegan RSQL Server DBA & Architect, EE Solution GuideCommented:
Ok.. Just kill explorer.exe and start a new explorer.exe from your Task manager instead of a system restart..
0
Máté FarkasDatabase Developer and AdministratorCommented:
First, you should use OpenedFilesView to find what is locking the backup file.
0
gtrappAuthor Commented:
I have already look there, nothing is locking the file.
0
gtrappAuthor Commented:
I have killed EXPLORER.EXE and started a new process. I am trying the copying again.
0
gtrappAuthor Commented:
I rebooted the server and that fixed the problem. I was able to copy the file. There were no process using the file.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2005

From novice to tech pro — start learning today.