Unable to open the physical file

While trying to attach the .mdf file of a database I faced following error:
Msg 5120, Level 16, State 101, Line 1
Unable to open the physical file "D:\AdventureWorks2012_Data.mdf".
Operating system error 5: "5(Access is denied.)".
This was resolved by running the SQL server management studio as Administrator account shown below.

Make Money from Surveys

Popular posts from this blog

The current master key cannot be decrypted

Schema.Object has an unresolved reference to Schema

Remove dateModified related warning appearing during Structured data testing