I have nothing to do today to see the old database, with Microsoft SQL Server 2012 attached to the database, the results of a tragic, a lot of errors, fortunately after a few attempts finally solved the problem, the error message is as follows, the solution is simple, run SQL as Administrator Server Management Studio, then attach the database and write it out for your reference.
Title:microsoft SQL Server Management Studio
------------------------------
Attach database failed for Server ' SERVER01 '. (MICROSOFT.SQLSERVER.SMO)
For help, Click:http://go.microsoft.com/fwlink? prodname=microsoft+sql+server&prodver=11.0.3000.0+ ((sql11_pcu_main). 121019-1325+) &EvtSrc= Microsoft.sqlserver.management.smo.exceptiontemplates.failedoperationexceptiontext&evtid=attach+database+ server&linkid=20476
------------------------------
ADDITIONAL Information:
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
------------------------------
Unable to open the physical file "G:\Database\EAS\Develop\EAS_Data.MDF". Operating system error 5: "5 (Access denied. )". (Microsoft SQL Server, error:5120)
For help, Click:http://go.microsoft.com/fwlink? Prodname=microsoft%20sql%20server&prodver=11.00.3153&evtsrc=mssqlserver&evtid=5120&linkid= 20476
------------------------------
BUTTONS:
Ok
------------------------------
This article is from the "XXX" blog, please be sure to keep this source http://5684052.blog.51cto.com/5674052/1614995
Microsoft SQL Server 2012 attached database