Archive for June, 2013
I am trying to attach a database into MS SQL server 2012/ Altering from Read only true to Read only fals;
The following error is occurred:
Unable to open the physical file “, filename”, Operating system error 5: “(Access Denied)”. (Microsoft SQL Server, Error: 5120)
The associated file/s (.mdf or .ldf) read only or SQL (user) do not have permission to access file in the location it saved.
Browse the location of file/s (.mdf or .ldf) right click on file –>Properties
Click On security Tab –> Select the user (for me it is Everyone) –>click on Edit
And check the full control/ Modify option in Allow column–> Apply –>OK
Do the same for all other associated files, if any.
Now it’s completed. Try what are you doing.