September 21, 2021 at 10:46 pm
Hi All
When I tried to attach my mdf and ldf file , I got error saying " The process cannot access the file because it is being used by another process.
How do I solve this issue ?
Your feedback is much appreciated.
September 22, 2021 at 7:42 am
Find the process which has the files locked.
Use something like handle.exe from the sysinternals suite of applications to find what application has hold of the files.
Then try again.
September 22, 2021 at 2:33 pm
Almost sounds like they may be already attached.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
September 22, 2021 at 8:05 pm
Almost sounds like they may be already attached.
+1000 Either that OF he has an explorer window open and maybe has even clicked on one of the files OR he hasn't yet closed the window that he did the copy with.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply