I tried to restore a database but this message showed. How do I restore this database?
Restore of database 'farhangi_db' failed.
(Microsoft.SqlServer.Management.RelationalEngineTasks)
------------------------------ ADDITIONAL INFORMATION:System.Data.SqlClient.SqlError: BACKUP LOG cannot be performed because
there is no current database backup. (Microsoft.SqlServer.SmoExtended)
I fixed my error on restoring to non-existing DB from SQL 2008 to SQL 2014 by putting a check mark on Relocating to the new SQL2014 folder location.
Simply you can use this method:
WIN+R
->services.msc
->SQL SERVER(MSSQLSERVER)
->Stop
my problem was solved with this method BY...
Another cause for this is if you have the same database restored under a different name. Delete the existing one and then restoring solved it for me.
Click Right Click On Your Database The Press tasks>Back Up and take a back up from your database before restore your database i'm using this way to solve this Problem
Originally, I created a database and then restored the backup file to my new empty database:
This was wrong. I shouldn't have first created the database.
Now, instead, I do this:
You can use following SQL to restore if you've already created database