Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Create database using Backup file


Create database using Backup file

Author
Message
reefshark
reefshark
Valued Member
Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)

Group: General Forum Members
Points: 60 Visits: 342
Can
reefshark
reefshark
Valued Member
Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)

Group: General Forum Members
Points: 60 Visits: 342
First of all, I apologize for the previous 3 posts. I kept getting an error when I previewed my post and then tried to post it. I tried deleting these posts, but am getting an error doing that as well...

I also want to create a new database from a full backup file on a different server. I was able to do this, but the new database isn't quite in the same state as the old one. I have 2 differential backup files from the old one that were created after the full backup. Can I apply these differentials to the new database? I kept getting an error. (why do I keep getting errors with everything I do?!?)
Lynn Pettis
Lynn Pettis
SSC-Insane
SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)

Group: General Forum Members
Points: 24233 Visits: 37978
First, if there were two differential backups taken after the last full backup you are restoring and you want the data as current as the second differential, you only need that one file. Second, if you did not restore the full backup with the NORECOVERY option specified, you will need to redo the restore using this option and then you can apply the latest differential backup using restore database.

Cool
Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
Perry Whittle
Perry Whittle
SSCrazy Eights
SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)

Group: General Forum Members
Points: 8789 Visits: 16560
reefshark (7/8/2009)
I kept getting an error. (why do I keep getting errors with everything I do?!?)


as Lynn says, you need to restore the database full backup with NORECOVERYas follows


RESTORE DATABASE mydata FROM DISK = 'D:\somepath\somefile.BAK'
WITH NORECOVERY



then restore the last differential (differentials are accumulative, so only the last needs applying)


RESTORE DATABASE mydata FROM DISK = 'D:\somepath\somefile.BAK'
WITH RECOVERY



shout back if you're still stuck

-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs" ;-)
raginigupta20
raginigupta20
Forum Newbie
Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: General Forum Members
Points: 4 Visits: 41
I tried to create database form another database or backup file,
Please see in the below url

http://ssis-tutorial-online.blogspot.in/2013/04/create-new-database-from-backup-of.html
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search