From: Van Den Steen Dany Van Den Steen on
To detect if there is a valid Full backup exist, before starting a log backup
I check of the LastBackupDate is filled.
Sometime this give the following error.
Error.Message : BACKUP LOG cannot be performed because there is no current
database backup.
BACKUP LOG is terminating abnormally.
Error.Source : .Net SqlClient Data Provider
Error.StackTrace : at
Microsoft.SqlServer.Management.Common.ConnectionManager.ExecuteTSql(ExecuteTSqlAction
action, Object execObject, DataSet fillDataSet, Boolean catchException)
at
Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteNonQuery(String
sqlCommand, ExecutionTypes executionType)
Error.TargetSite : System.Object ExecuteTSql(ExecuteTSqlAction,
System.Object, System.Data.DataSet, Boolean)

Is there another method to detect there is a valid Full backup
From: Van Den Steen Dany on


"Van Den Steen Dany" wrote:

> To detect if there is a valid Full backup exist, before starting a log backup
> I check of the LastBackupDate is filled.
> Sometime this give the following error.
> Error.Message : BACKUP LOG cannot be performed because there is no current
> database backup.
> BACKUP LOG is terminating abnormally.
> Error.Source : .Net SqlClient Data Provider
> Error.StackTrace : at
> Microsoft.SqlServer.Management.Common.ConnectionManager.ExecuteTSql(ExecuteTSqlAction
> action, Object execObject, DataSet fillDataSet, Boolean catchException)
> at
> Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteNonQuery(String
> sqlCommand, ExecutionTypes executionType)
> Error.TargetSite : System.Object ExecuteTSql(ExecuteTSqlAction,
> System.Object, System.Data.DataSet, Boolean)
>
> Is there another method to detect there is a valid Full backup

The backup program is written C# with the SMO library