[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 393
  • Last Modified:

MDF file won't copy

I have detached a database mdf file from SQL Server, but when I try to copy it, I get the error that it's being used by another process or person.  All of my programs are closed except for Windows Explorer.  What am I doing wrong?

Thank you in advance.
0
Agent909
Asked:
Agent909
3 Solutions
 
sasi_kmrCommented:
stop the Ms SQL service and then try it.

it should work

thanks,
SASI
0
 
sachinonnetCommented:
some of the connection still refering to file data, try to close connections forcefully.
0
 
Alpesh PatelAssistant ConsultantCommented:
Hi,

Stop SQL Server Services and do it.
0
 
Agent909Author Commented:
I got it to work!  Thank you!
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now