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

Schema.Object has an unresolved reference to Schema

The current master key cannot be decrypted

There is insufficient memory available in the buffer pool