Hi All. while taking log backup of a database before taking full backup I am getting the below errors : Msg 4214, Level 16, State 1, Line 4 BACKUP LOG cannot be performed because there is no current database backup. Msg 3013, Level 16, State 1, Line 4 BACKUP LOG is terminating abnormally. But while using Try Catch method I am unable to catch 4214 error:
Using Powershell ISE I am able to do it.
Could somebody please help me in writing a stored procedure to catch the 4214 error too.
thank you