You dont need Tran log backup to restore the db if you have full backup you can restore the db, the only difference is that using tran log backup provides point in time recovery and hence the data loss is minimised if you have tran log backup.
Perform as below,
1. Restore database Yourdbname With Recovery (Execute this command)
2. Now try to restore your full backup.
Regards
Deepak
dvang wrote:
I was actually attempting to do it via the SSMS by right-clicking the database, then clicking on restore, then pointing to the .bak file, then execute. I get an error when i do it this way. Any insights
Ekrem Onsoy wrote:
dvang wrote:
I was actually attempting to do it via the SSMS by right-clicking the database, then clicking on restore, then pointing to the .bak file, then execute. I get an error when i do it this way. Any insights
If it's a FULL backup, then go to Restore Database... (You can see if it's a FULL or not from the Type column in "Select the backup sets in restore" list)
Ensure that in the Restore Database window, in the Options pane Recovery State "RESTORE WITH RECOVERY" is selected
Did you try restoring the db using With Replace option i.e you need to chose 'Force restore over existing database' option in SSMS i believe.
Regards
Deepak
Deepak Rangarajan wrote:
Did you try restoring the db using With Replace option i.e you need to chose 'Force restore over existing database' option in SSMS i believe.
Regards
Deepak
Ekrem Onsoy wrote:
I suggest you to take a look at the following document from BOL:
http://msdn2.microsoft.com/en-us/library/ms186858.aspx
You better use "RESTORE DATABASE" TSQL command instead of GUI.
Ekrem Onsoy wrote:
Also, when you restore on an up-to-date database, you'll lose all your current data. So, if you don't need that data, then delete it all and restore a clean instance of that database. However, you better take a backup of your current database.
Deepak Rangarajan wrote:
Sorry ! You need to chose the option "Overwrite existing database" Pls refer the below link,
http://msdn2.microsoft.com/en-us/library/ms177429.aspx
Regards
Deepak
After restoring your database from backup, restore it using another name and use Import by right clicking on your target database and click Tasks\Import Data. Follow the wizard and you'll see options to Copy only selected tables and their columns.
This Import thing will meet your needs I believe.
If I'm understanding you correctly, what you really want to do is to restore a copy of the database from backup to a new location without disturbing the current database. That way you can extract the data you need from the back-up database.
If this is the case, DO NOT use the option to overwrite the existing database! That will wipe out the current data!
If you care about the current data, then use the "WITH MOVE" option to redirect the backup to new data files and not overwrite the existing ones.
RESTORE DATABASE <new-name> FROM
DISK='q:\some-backup-file.bak'
WITH MOVE 'DataFile1' TO z:\new_location\mydb.mdf',
MOVE 'DataFile2' TO 'z:\new_location\mydb2.ndf',
MOVE 'MyLog' TO 'y:\new_location\mydb.ldf'
WITH RECOVERY