Home > Database > Mysql Tutorial > Sql Server 2008 还原数据库 3154错误

Sql Server 2008 还原数据库 3154错误

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:37:22
Original
1744 people have browsed it

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

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
server
From 1970-01-01 08:00:00
0
0
0
Configure server
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template