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 2005
»
Administering
»
restore database
restore database
Rate Topic
Display Mode
Topic Options
Author
Message
nihal9200_kwada
nihal9200_kwada
Posted Wednesday, January 06, 2010 10:33 AM
Old Hand
Group: General Forum Members
Last Login: Thursday, May 16, 2013 2:30 PM
Points: 352,
Visits: 1,692
I am trying to restore a database thru Management studio
restored database full backup with no recovery
Now trying to restore diff backup with recovery, throwing below error
The backup set holds a backup of a database other than the existing 'test' database.
Can anybody provide the tsql command to restore
Restore full backup with no recovery
restore diff backup with no recovery
restore diff 2 backup with recovery
Post #843011
GilaMonster
GilaMonster
Posted Wednesday, January 06, 2010 11:17 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 3:28 PM
Points: 37,730,
Visits: 29,996
Are you sure the diff you're trying to restore belongs to that database? The error indicates that it doesn't
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 #843047
homebrew01
homebrew01
Posted Wednesday, January 06, 2010 11:37 AM
SSCrazy
Group: General Forum Members
Last Login: Today @ 8:39 AM
Points: 2,554,
Visits: 7,211
laddu4700 (1/6/2010)
Restore full backup with no recovery
restore diff backup with no recovery
restore diff 2 backup with recovery
You only need to restore the most recent diff, then all the transaction logs more recent than the diff.
Post #843067
SQLRNNR
SQLRNNR
Posted Wednesday, January 06, 2010 11:43 AM
SSCoach
Group: General Forum Members
Last Login: Monday, May 20, 2013 1:07 PM
Points: 18,733,
Visits: 12,332
homebrew01 (1/6/2010)
laddu4700 (1/6/2010)
Restore full backup with no recovery
restore diff backup with no recovery
restore diff 2 backup with recovery
You only need to restore the most recent diff, then all the transaction logs more recent than the diff.
Yes - as homebrew said. Eliminate the middle diff backup and then add your tran logs more recent than the last diff.
Jason
AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server 2008
SQL RNNR
Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #843073
nihal9200_kwada
nihal9200_kwada
Posted Wednesday, January 06, 2010 12:25 PM
Old Hand
Group: General Forum Members
Last Login: Thursday, May 16, 2013 2:30 PM
Points: 352,
Visits: 1,692
Thanks to all, i was selecting wrong back up file
So Now i want to verity the updated data
I have one full backup file 12/31/2009 12:20AM
Diff backup file 12/31/2009 06:35 AM
TLOG BACKUP 180 files between 6:35 am to 12:35pm
I want to restore each tlog with recovery and check the data..every time do I need to delete database and restore with tlog with recovery? or any other way to do it
Post #843122
GilaMonster
GilaMonster
Posted Wednesday, January 06, 2010 12:50 PM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 3:28 PM
Points: 37,730,
Visits: 29,996
Restore it with Standby. Otherwise you'd have to drop the database and start from scratch after each log restore.
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 #843141
Ratheesh.K.Nair
Ratheesh.K.Nair
Posted Wednesday, January 06, 2010 8:59 PM
SSCrazy
Group: General Forum Members
Last Login: Today @ 8:57 AM
Points: 2,415,
Visits: 3,375
Hi Gail,
How can we make a database in standby mode if we are specifying the WITH NORECOVERY option?
Can you please let me know how to restore the database in standby mode?What about the subsequent diff backup and log backup restoration?
TIA
Post #843287
GilaMonster
GilaMonster
Posted Thursday, January 07, 2010 1:17 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 3:28 PM
Points: 37,730,
Visits: 29,996
Ratheesh.K.Nair (1/6/2010)
How can we make a database in standby mode if we are specifying the WITH NORECOVERY option?
You can't. If you want the database in Standby, you use WITH STANDBY instead of WITH NORECOVERY
Can you please let me know how to restore the database in standby mode?What about the subsequent diff backup and log backup restoration?
May I suggest a read of Books Online, specifically the sections on restoring a log.
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 #843358
« 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.