Unable to open the physical file & amp; quot; D: understructuredata_DAT.MDF & amp;

Source: Internet
Author: User
Tags microsoft sql server management studio
Error message: Title: MicrosoftSQLServerManagementStudio ------------------------------ the attached database fails to "HC-PC" on the server. (Microsoft. SqlServer. Smo) for help information, click go. microsoft. comfwlink? ProdNameMicrosoft + SQL + ServerProdVer1

Error message: Title: Microsoft SQL Server Management Studio ------------------------------ the attached database failed to "HC-PC" on the Server. (Microsoft. SqlServer. Smo) for help information, click: http://go.microsoft.com/fwlink? ProdName = Microsoft + SQL + ServerProdVer = 1

Error message:

Title: Microsoft SQL Server Management Studio ------------------------------ the attached database failed to "HC-PC" on the Server. (Microsoft. SqlServer. Smo) for help information, click: http://go.microsoft.com/fwlink? ProdName = Microsoft + SQL + Server & ProdVer = 10.50.1600.1 + (KJ_RTM ). 100402-1539 +) & EvtSrc = Microsoft. sqlServer. management. smo. predictiontemplates. failedOperationExceptionText & EvtID = additional database + Server & LinkId = 20476 ------------------------------ Other information: an exception occurred when executing a Transact-SQL statement or batch processing. (Microsoft. SqlServer. ConnectionInfo) ------------------------------ unable to open the physical file "D: \ understructuredata _ DAT. MDF ". Operating System Error 5: "5 (Access denied .) ". (Microsoft SQL Server, error: 5120) for help information, click: http://go.microsoft.com/fwlink? ProdName = Microsoft + SQL + Server & ProdVer = 10.50.1600 & EvtSrc = MSSQLServer & EvtID = 5120 & LinkId = 20476 -------------------------- CLICK: OK ------------------------------

Background:

Stop the migration related to the SQL server on the original database server, and copy the corresponding data files (. MDF) and log files (. LDF) from the original database to the server where the target database is located.
Log on to the database and select attach. the following error message is displayed:
Solution:

Grant everyone operations to data files (. MDF) and log files (. LDF), such



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.