Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2008
»
Data Corruption (SS2K8 / SS2K8 R2)
»
Cant Attach Back Up File
Cant Attach Back Up File
Rate Topic
Display Mode
Topic Options
Author
Message
najeeb_kt2000
najeeb_kt2000
Posted Saturday, July 28, 2012 3:42 AM
Forum Newbie
Group: General Forum Members
Last Login: Thursday, September 06, 2012 1:33 PM
Points: 8,
Visits: 29
Trying to repair database from Backup file giving errors .
Restore failed for Server 'USER-PC\SQLEXPRESS'. (Microsoft.SqlServer.Express.Smo)
The backup set holds a backup of a database other than the existing 'FLEX'
I am using the backup of the same daabse tried many metods. All failed
Server error messages as follows.
Restore failed for Server 'USER-PC\SQLEXPRESS'. (Microsoft.SqlServer.Express.Smo)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.2047.00&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Restore+Server&LinkId=20476
at Microsoft.SqlServer.Management.Smo.Restore.SqlRestore(Server srv)
at Microsoft.SqlServer.Management.SqlManagerUI.SqlRestoreDatabaseOptions.RunRestore()
System.Data.SqlClient.SqlError: The backup set holds a backup of a database other than the existing 'FLEX' database. (Microsoft.SqlServer.Express.Smo)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.2047.00&LinkId=20476
at Microsoft.SqlServer.Management.Smo.ExecutionManager.ExecuteNonQueryWithMessage(StringCollection queries, ServerMessageEventHandler dbccMessageHandler, Boolean errorsAsMessages)
at Microsoft.SqlServer.Management.Smo.BackupRestoreBase.ExecuteSql(Server server, StringCollection queries)
at Microsoft.SqlServer.Management.Smo.Restore.SqlRestore(Server srv)
Post #1336897
GilaMonster
GilaMonster
Posted Saturday, July 28, 2012 5:03 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 4:11 PM
Points: 37,741,
Visits: 30,020
RESTORE ... WITH REPLACE
Just check that the backup does contain what you think it does (restore headeronly) as that message means exactly what it says.
Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild
: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter
We stand on the bridge and no one may pass
Post #1336905
Vikrant S Patil
Vikrant S Patil
Posted Saturday, July 28, 2012 9:12 AM
SSC Journeyman
Group: General Forum Members
Last Login: Thursday, May 16, 2013 1:53 PM
Points: 92,
Visits: 281
and in addition to restore headeronly you can also execute "restore filelistonly" to get a list of the database and log files that are contained in the backup set from which you are trying to restore.
Also discussion from the following URL may prove useful for you ( they are suggesting the same as what Gail suggested, namely the REPLACE option)
http://social.msdn.microsoft.com/Forums/en/sqldatabaseengine/thread/4f17d722-5c4a-4730-a2cf-1507b6e6be17
http://msdn.microsoft.com/en-us/library/aa238217(v=sql.80).aspx
http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/
Post #1336931
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.