0

I created a backup (.bak) file and transfer it to another computer when I'm trying to make backup I get an error:

BACKUP LOG cannot be performed because there is no current database backup.

How can I resolve this issue?

marc_s
759k185 gold badges1.4k silver badges1.5k bronze badges
asked Dec 14, 2015 at 15:25
2
  • Did you backup the log as well as the db? Commented Dec 14, 2015 at 15:30
  • unclear what you are asking. you are taking a log backup? what about taking a database backup first? how does the transfer of the bak files comes into play? what's the content of the bak file? how you create that bak file? which sql commands you use? PLEASE do put the details in the post and not in the comments. Commented Dec 14, 2015 at 15:33

2 Answers 2

1

This error is raised when you have never taken full backup of your database and try to attempt to take backup of the log only. You need to take a full backup. If you can't find the correct options in SSMS, you can use the following script

BACKUP DATABASE [MyDB] TO DISK = N'C:\MyDB.bak'
GO
BACKUP LOG [MyDB] TO DISK = N'C:\MyDB.bak'
GO
answered Dec 14, 2015 at 15:30
Sign up to request clarification or add additional context in comments.

5 Comments

I'm already tried to do this and got this errors: Msg 911, Level 16, State 11, Line 1 Database 'livacast' does not exist. Make sure that the name is entered correctly. Msg 3013, Level 16, State 1, Line 1 BACKUP DATABASE is terminating abnormally. Msg 911, Level 16, State 10, Line 1 Database 'livacast' does not exist. Make sure that the name is entered correctly. Msg 3013, Level 16, State 1, Line 1 BACKUP LOG is terminating abnormally.
That message suggest the database livacast does not exists
I know)) But it exists and my ".bak" file in c folder too
Can you add the contents of this query to your question: select * from sys.databases where name = 'livacast'
When I'm trying to create it again I' getting an error that it's already exists
1

Take full backup first and then take log back up. The error is stating that you never took a full backup before taking a log backup.

BACKUP DATABASE [DBName]
TO DISK = N'C:\DBName.bak'
GO
BACKUP LOG [DBName]
TO DISK = N'C:\DBName.bak'
GO
answered Dec 14, 2015 at 15:31

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.