Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7827791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T10:03:01+00:00 2026-06-02T10:03:01+00:00

Here’s the scenario: We have a corporate website with three databases. It’s running SQL

  • 0

Here’s the scenario:

We have a corporate website with three databases. It’s running SQL Server 2005. The three databases are linked to MDF files. Someone tried to directly copy / paste one of these MDF files that did some kind of lock on the file that caused a read-only error. We fixed this by detaching / reattaching.

To prevent this again, we’re looking to get copies of these databases to demote to our QA database.

What’s the best way we can make copies without taking the corporate site down? I tried to search google and didn’t come up with a decent way. The databases are fairly small, and the worst case I can think of is just to shut down the SQL Server Service, then just copy the MDF’s, then restart the service. I’m assuming that’s 10 seconds at the most downtime.

[Please note anyone reading this, do not directly copy MDF files, make sure you at least take the DB offline or the DB can be locked]

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T10:03:02+00:00Added an answer on June 2, 2026 at 10:03 am

    Rather than trying to copy and locking the MDF files, just take backups of the database to the filesystem and then copy those off.

    You ask whether users will be affected during a backup…

    We can’t say that there won’t be “any” affect on the users because of course we are doing things with the database. However, backing up live databases is the norm. Generally, you would schedule the backup overnight or during a period of low use so that there is minimal disruption.

    Check out this questions which has some good information provided:
    https://serverfault.com/questions/100490/what-happens-during-a-live-sql-server-backup

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

here is my configuration: http://domain.com (obviously fictitious name...) hosted on a server running Apache
Here's my scenario - I have an SSIS job that depends on another prior
Here's my scenario: <!-- Normal Control --> <div class=required> <label for=address1>Address line 1</label> <input
Here's the basic setup: I have a thin bar at the top of a
Here is my problem : I have a post controller with the action create.
Here is an example: I have the generic type called Account. I wish to
Here is my SQL: SELECT COUNT(id), CONCAT(YEAR(created_at), '-', MONTH(created_at), '-', DAY(created_at)) FROM my_table GROUP
Here I have an int x=3; NSLog(@%i, x); How to have it displayed like
Here is my code...I have two dimensional matrices A,B. I want to develop the
here's what we have today: * NxM grid of points in 3D * we

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.