Showing posts with label database. Show all posts

solving a problem that was annoying me

No Comments »

Attach database failed for server "XXX" unable to open the physical file "XXX". Operating system error 5: "5(failed to retrieve text for this error. Reason: 15105)". (Microsoft SQL Server, Error: 5120)



Just run Microsoft SQL Server Management Studio as an Administrator.
As Following:
1- Go to Microsoft SQL Server Management Studio Icon.
2- Right Click, Choose Properties.
3- Go to Compatibility Tab.
4- Check "Run this program as an administrator" check box at "Privilege Level" section, and click OK.

that would solve the problem.