Question subject: Restoring SQL Database from the .BAK File Problem
Posted: Wed Mar 09, 2011 2:25 pm
Joined: Sun Jan 09, 2011 2:16 pm Posts: 56 Has thanked: 1 time Have thanks: 0 time
Hi friendzz... I am a new bie to MS SQL Server 2005. When iam trying restore SQL database (backup file .bak extension) using the Restore database option in SQL server 2005 it will show the error with the following
" Restore failed for Server 'SAI'. (Microsoft.SqlServer.Smo)
ADDITIONAL INFORMATION:
System.Data.SqlClient.SqlError: The backup set holds a backup of a database other than the existing 'pas' database. (Microsoft.SqlServer.Smo) "
plz any body help me on this as soon as possible...
Question subject: Re: Restoring SQL Database from the .BAK File Problem
Posted: Thu Mar 10, 2011 10:14 pm
Joined: Tue Mar 27, 2007 10:55 pm Posts: 2279 Location: Earth Has thanked: 39 time Have thanks: 61 time
Cause.
This error appears when you are trying to restore a backup set that was not created on the database that you want to apply this restore.
Solution.
To apply this restore and prevent this error message, you will need to select "Overwrite the existing database" on the restore dialog as shown in the image below.