sqlserver2008还原数据库时出现了3154错误,具体错误信息如下: 错误信息 the backup set holds a backup of a database other than the existing ‘xxxxx’database. restore database is terminating abnormally. (microsoft sql server,错误: 3154) 解决
sqlserver2008还原数据库时出现了3154错误,具体错误信息如下:
错误信息 the backup set holds a backup of a database other than the existing ‘xxxxx’database.
restore database is terminating abnormally. (microsoft sql server,错误: 3154)
解决方法 1. 不在数据库名字上右键点击还原,而是在上一层目录“数据库”上右键还原,然后选择要还原的数据库,,和备份文件。(不明白为什么在数据库名字上和在“数据库”上进行还原会有不同。不过这招确实能解决问题!)
2. 执行下面sql语句:(这招没试过,比较懒不想敲)
restore database xxxxx from disk = ‘{file path}’with replace;
参考
?controller=content&action=show&id=791
