The physical file "C:/AA. MDF" cannot be opened ". Operating System Error 5: "5 (Access denied .)".

Source: Internet
Author: User
Tags management studio microsoft sql server management studio sql server management sql server management studio

This error was reported when I used sql2005 to attach a database today...

Itle: Microsoft SQL Server Management studio Express
------------------------------

An error occurred while appending the database. For more information, click the hyperlink in the message column.

------------------------------
Buttons:

OK
------------------------------
Title: Microsoft SQL Server Management studio Express
------------------------------

An error occurred while attaching the database to the server "myhfut/sqlexpress. (Microsoft. sqlserver. Express. SMO)

For help, click: http://go.microsoft.com/fwlink? Prodname = Microsoft + SQL + server & prodver = 9.00.2047.00 & evtsrc = Microsoft. sqlserver. Management. SMO. exceptiontemplates. failedoperationexceptiontext & evtid = additional database + server & linkid = 20476

------------------------------
Additional information:

An exception occurred when executing a Transact-SQL statement or batch processing. (Microsoft. sqlserver. Express. connectioninfo)

------------------------------

The physical file "C/AA. MDF" cannot be opened ". Operating System Error 5: "5 (Access denied .) ". (Microsoft SQL Server, error: 5120)

For help, click: http://go.microsoft.com/fwlink? Prodname = Microsoft + SQL + server & prodver = 09.00.2047 & evtsrc = MSSQLServer & evtid = 5120 & linkid = 20476

------------------------------
Buttons:

OK
------------------------------

 

 

Solution:

Re-connect to the database without adding SA users. Select windows integration verification mode. OK

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.