Additional database error: Unable to open physical file Xxx.mdf ", os 5:" 5 (Access denied. )"

Source: Internet
Author: User

Today, when attaching the database error message: Unable to open the physical file Xxx.mdf ", operating system error 5:" 5 (Access denied.) "Error message (is not the remote server database attached to the read-only situation, can also be resolved??) , tested, this is the case, but the user is remote, change to Full control allow)

First of all, my database installation root directory and the attached database is not the same directory, when the database is installed in the root directory is the default, the directory under the C disk, and I want to attach the database directory for the e-disk, so:
Solution one: Log in with your Windows account and port the attached database to the root directory.

Then complete the attach.
Solution Two:
Log in with Windows account, then will be attached to the database under the E-disk, change the permissions, select the. mdf file-----Right-click-----security------Authenticated Users----Edit----security control allowed, specific into, and then, Follow the same method, change the log file, and then attach the database to both.

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.