Solved

MDF file won't copy

Posted on 2010-11-17
4
387 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

I have written a PowerShell script to "walk" the security structure of each SQL instance to find:         Each Login (Windows or SQL)             * Its Server Roles             * Every database to which the login is mapped             * The associated "Database User" for this …
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

688 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