Solved

MDF file won't copy

Posted on 2010-11-17
4
383 Views
Last Modified: 2012-05-10
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
Comment
Question by:Agent909
4 Comments
 
LVL 3

Accepted Solution

by:
sasi_kmr earned 167 total points
ID: 34161916
stop the Ms SQL service and then try it.

it should work

thanks,
SASI
0
 
LVL 1

Assisted Solution

by:sachinonnet
sachinonnet earned 167 total points
ID: 34161936
some of the connection still refering to file data, try to close connections forcefully.
0
 
LVL 21

Assisted Solution

by:Alpesh Patel
Alpesh Patel earned 166 total points
ID: 34161955
Hi,

Stop SQL Server Services and do it.
0
 
LVL 1

Author Closing Comment

by:Agent909
ID: 34161965
I got it to work!  Thank you!
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Naughty Me. While I was changing the database name from DB1 to DB_PROD1 (yep it's not real database name ^v^), I changed the database name and notified my application fellows that I did it. They turn on the application, and everything is working. A …
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question