Total members 10262 | Gratitudes |It is currently Thu May 24, 2012 10:29 am Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 4 posts ] 
Author Question
 Question subject: Restoring SQL Database from the .BAK File Problem
PostPosted: Wed Mar 09, 2011 2:25 pm 
Offline
Beginner
User avatar

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...

Thanks in advance...

_________________
technoyouth


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: Restoring SQL Database from the .BAK File Problem
PostPosted: Thu Mar 10, 2011 10:14 pm 
Offline
Mastermind
User avatar

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.

http://www.sqlcoffee.com/Troubleshooting019.htm

_________________
Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: Restoring SQL Database from the .BAK File Problem
PostPosted: Tue Mar 15, 2011 4:16 pm 
Offline
Beginner
User avatar

Joined: Sun Jan 09, 2011 2:16 pm
Posts: 56
Has thanked: 1 time
Have thanks: 0 time
thank u dude...

_________________
technoyouth


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: Restoring SQL Database from the .BAK File Problem
PostPosted: Tue Mar 15, 2011 4:20 pm 
Offline
Mastermind
User avatar

Joined: Tue Mar 27, 2007 10:55 pm
Posts: 2279
Location: Earth
Has thanked: 39 time
Have thanks: 61 time
you are welcome .

_________________
Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )


TOP
 Profile Send private message  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 4 posts ] 
Quick reply


  

 Similar topics
 Connect to database Microsoft access within jsp servlet
 Image Insert in Excel File Using POI
 ASP file structure
 navigating to database using java
 Search records from text file
 error closing file matlab save
 JavaScript fade out problem
 How to download any file in jsp.
 read php file in asp and display it as html
 javascript read file

All times are UTC [ DST ]


Users browsing similar posts

Users browsing this forum: No registered users and 1 guest



Jump to:  
Previous Question | Next Question 




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team