Solution to: Attach database failed for Server. Unable to open the physical file. Operating system error 5: "5(Access is denied.)". (Microsoft SQL Server, Error: 5120) 2013-10-01 Easy one, just run SQL Server Management Studio as Administrator.