SQL2012 Restore the database operation on the local server and with other computers far thread attached to the server to operate the file path differences

Source: Internet
Author: User

On the database server, when you want to restore a database to a backup file, the server's database file itself is stored in the

D:\DEVDB Directory

Connect to a database server operation restore by developing MS Manager on your computer

Although a file card entry is found, the original file name differs from the path to "revert to"

However, because you want to choose the "Overwrite existing database" method to restore, like the previous operation sql2000, the restored database will automatically replace the original file

As a result, the database file under the D:\DEVDB directory was found to be missing, but was moved to the C:\Program Files\Microsoft SQL Server\mssql11. The Mssqlserver\mssql\data video is the same as the path on the "file" card item seen in the previous figure. This is not what you want to expect ...

-----------

But the same restore operation, if you operate on the server natively, the restored "file" option interface will be

The original file is consistent with the restore.

In this way, it is best to restore operations in the local server to make it easier, or every time you want to modify the restored path ...

Although you can modify the default path for all database files saved in the database settings

SQL2012 Restore the database operation on the local server and with other computers far thread attached to the server to operate the file path differences

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.