Transaction Log – SQL Server 2005

pts.
Tags:
Backup & recovery
SQL Server 2005
SQL Server backup
SQL Server transaction logs
How do i find out what transaction log file was last applied to a database?

Answer Wiki

Thanks. We'll let you know when a new response is added.

Which backups have been restored is kept in the msdb database. Look in the database for tables that start with backup or restore. That’s where the information is kept. You can also look in the ERRORLOG file as each restore should be logged in there.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • what i want to do is pull the last lsn number applied to the database to view with a tsql statement, is there a way to do that? And also i want to pull the lsn to view from the transaction log using tsql
    0 pointsBadges:
    report
  • Thanks Mr. Denny, I used the msdb. select bs.backup_start_date, bs.first_lsn, bs.last_lsn, bs.checkpoint_lsn from dbo.backupset bs where bs.database_name = 'YourDatabaseNameHere' and bs.backup_set_id > (select max(backup_set_id) from dbo.backupset where database_name = bs.database_name and type = 'D')
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following