I'm testing database restores and every time I attempt to restore a full database backup I receive the following messge:
System.Data.SqlClient.SqlError: The tail of the log for the database "DataMartAZ" has not been backed up. Use BACKUP LOG WITH NORECOVERY to backup the log if it contains work you do not want to lose. Use the WITH REPLACE or WITH STOPAT clause of the RESTORE statement to just overwrite the contents of the log. (Microsoft.SqlServer.Smo)
What causes this? The Full Backup operation performs fine with no errors, but on restore I get this. Any advice is appreciated.
RESTORE your database (with "WITH NORECOVERY" option) and then RESTORE your log