`
yingyingol
  • 浏览: 747924 次
文章分类
社区版块
存档分类
最新评论

错误解决:附加SQL Server 2000数据库 5118错误

 
阅读更多

错误解决:附加SQL Server 2000数据库 5118错误

分享

一、错误信息:

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

有关帮助信息,请单击: http://go.microsoft.com/fwlink?

ProdName=Microsoft+SQL+Server&ProdVer=9.00.3042.00&EvtSrc=Microsoft.

SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText

&EvtID=附加数据库+Server&LinkId=20476

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

其他信息:

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

ctionInfo)

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

文件 "G:/Data/TrafficCollege_Data.MDF" 已压缩,但未驻留在只读数据库或

文件组中。必须将此文件解压缩。无法打开新数据库 'TrafficCollege'CREA

TE DATABASE 中止。 (Microsoft SQL Server,错误: 5118)有关帮助信息,

请单击: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&

ProdVer=09.00.3054&EvtSrc=MSSQLServer&EvtID=5118&LinkId=20476

二、微软的解释

Details

ID:

5118

Source:

MSSQLServer

We're sorry

There is no additional information about this issue in the Error and Event Log

Messages or Knowledge Base databases at this time. You can use the links in

the Support area to determine whether any additional information might be

available elsewhere.

三、原因

就是你的数据库文件所在逻辑硬盘选择了“压缩驱动器以节省磁盘空

间”,而2005认不出来压缩过的文件,这点上来说,微软说We're sorry

点都不怨。

四、解决办法

把文件考到没有压缩磁盘的逻辑硬盘上,或者把本逻辑硬盘的压缩属

性去掉。

五、小技巧

http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&

ProdVer=09.00.3054&EvtSrc=MSSQLServer&EvtID=5118&LinkId=20476

看到其中的5118了么,那就是你的错误代码,以后遇到错误了,

替换这个代码,就可以找到微软的标准解释。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics