This article is a mirror article of machine translation, please click here to jump to the original article.

View: 19942|Reply: 1

[Source] Unable to open physical file C:\x.mdf, OS error 5:5 (access denied)

[Copy link]
Posted on 3/24/2017 8:36:36 PM | | |


Error when attaching a database: Unable to open a physical file XXX.mdf". OS error 5: "5 (Access denied. )"  
  The reason is that the database permission cannot read the file under the path.
  Solution 1: The database uses Windows authentication to port the attached database to the root directory, that is, the MSSQL DATA directory.

  Solution 2: Windows Verify, then change the permissions of the .mdf file and .ldf file to be attached, select .mdf file----> right-click -----> Authenticated ------>Users----> Edit----> Security Control Allow,
  Follow the same method, change the log file, and then attach the database.




Previous:.net/c# http request to get content not returned by 200
Next:A file activation error occurred. The physical file name '\\Date.mdf' may be ...
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com