Unable to open the physical file "D:\MSSQL\Data\dbAcquisitionStaging_Data1.mdf". Operating system error 5: "5(Access is denied.)". (Microsoft SQL Server, Error: 5120)

This problem occurs when you migrate the operating system. example if you are using Win Xp and migrate to Windows7 and when you try to attach the mdf files. This error occurs.

Resolution:
1. Make sure you are logging with the same user name and password for SQL server.
2. You should have complete access to the mdf files. Full permission.
3. Restore with windows authentication.

I had the same problem and i have restored it successfully. i have even tried with 32bit and 64bits win7 OS.

Hope this will reslove your Issue.

Comments

Popular posts from this blog

How to Stop Excel from giving a number in scientific notation

The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine

System.IO.IsolatedStorage.IsolatedStorageException: Unable to create the store directory