An error occurred while copying the SQL Server database file or folder.

Source: Internet
Author: User

I want to copy my database files from one machine to another machine (the same is true for copying them to different disks of the same machine), and the error "copy file or folder error" may occur, for example. This is because the SQL Server service is enabled and occupies part of the memory. Therefore, an error occurs when the program is occupied (the memory is not released at this time ). The solution can be to stop (or close) the SQL Server service. There is also a simple method.

First, the database is separated from the database server. The method is:
Right-click the database you want to copy and choose ---> task ---> detach. In this way, the *. MDF and *. LDF files can be moved or copied.
Then, after the replication is complete, attach the database to the database server. The method is:
Select database, right-click ---> attach ---> select the *. MDF file that you just separated.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.