Transaction Log File Does Not Match the Database

Messages appear in the server log file (.srvlog) and in the window where you are starting the server:

Starting database "dbname" (/dbdir/dbname.db) 
at Fri Apr 27 2009 10:53 Transaction log: dbname.log
Error: Cannot open transaction log file 
-- Can't use log file "dbname.log" since the database 
file has been used more recently
Cannot open transaction log file 
-- Can't use log file "dbname.log" since the database 
file has been used more recently
Database server stopped at Fri Apr 27 2009 10:53

If these errors are reported when you are starting the server, verify that the server is using the correct transaction log file. If you cannot find the correct transaction log file, the safest way to recover from this situation is to restore from the last valid backup.

If you cannot find the correct transaction log and restoring from backup is not an option, perform an emergency recovery without a transaction log.