SQL Server: Moving database files

1143035 pts.
Tags:
Database
SQL Server
I currently have a SQL Server database and I need to move several .MDF and .LDF files somewhere else. But I can't stop the SQL Server service and I can't export it to another server too. How can I do this?
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • danieljones
    I don’t think that it is possible to move mdf and ldf while sql server services is running. You have to take the database offline, then use Detach/Attach option to move mdf and ldf file.
    2,840 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: