How to restore the. mdf data file in SQL Server 2008

Source: Internet
Author: User
Tags microsoft sql server

The process of restoring a database file, only MDF files, how to restore? In the original SQL Server 2005, click the database directly and then attach it can be restored, but in the 2008 version of the database file will be an error (only MDF file){Execute Transact-SQL statement or processing exception occurs} So now you can open the database of two files (mdf,ldf), right-click Properties,



Select Administrators (that is,the native user), modify the permissions to Full Control , as well as another file, and then follow the steps above to restore the database.
Another way is to copy the above two files directly to the default directory of the system database (C:\Program Files\Microsoft SQL Server\mssql10. Mssqlserver\mssql\data), using the SQL statement to restore. Reference steps:

Article source attached link

http://blog.csdn.net/yishengzhiai005/article/details/44944497

How to restore the. mdf data file in SQL Server 2008

Related Article

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.