[SQLSERVER2005 ERROR]"附加数据库 对于 服务器“GNPC”失败"

信息 

标题: Microsoft SQL Server Management Studio
------------------------------

附加数据库 对于 服务器“GN-PC”失败。  (Microsoft.SqlServer.Smo)

有关帮助信息,请单击: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.1399.00&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=附加数据库+Server&LinkId=20476

------------------------------
其他信息:

执行 Transact-SQL 语句或批处理时发生了异常。 (Microsoft.SqlServer.ConnectionInfo)

------------------------------

无法打开物理文件 "D:\SqlServerFiles\ABC.mdf"。操作系统错误 5:"5(拒绝访问。)"。 (Microsoft SQL Server,错误: 5120)

有关帮助信息,请单击: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=09.00.1399&EvtSrc=MSSQLServer&EvtID=5120&LinkId=20476

------------------------------
按钮:

确定
------------------------------

失败的情形:用公司域用户登录的sqlserver2005,无法附加;

解决方案:改用sa登录方式。

参考:

http://blog.csdn.net/chenghaibing2008/article/details/7831708

http://blog.csdn.net/goux_s/article/details/5935342

原文地址:https://www.cnblogs.com/gmth/p/3006799.html