Attach file to Database

Source: Internet
Author: User

D:\Program Files\Microsoft SQL Server\mssql11. Mssqlserver\mssql\data

Databasename.mdf

Databasename.ldf

We have saved our database record in a Microsoft SQL Server file.

The above 2 file represents a database.

If we want to quickly move the information and configuration to a computer, you can copy the 2 file

Copy to stop SQL run first

C:\ProgramData\Microsoft\Windows\Start menu\programs\microsoft SQL Server 2012\configuration tools\sql server Configuration Manager

You can open this stop all SQL running only copy.

Paste to the same directory as another computer. File to tune permission Oh, otherwise will not paste.

Then we open Management Studio.

Left database Right click-Attach, add-a OK!

Attach file to Database

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.