Search code examples
sql-servertransaction-log

SQL Server 2008 Transaction Log: Date/Time


Need to roll back a delete query, so I'm sifting through the transaction logs without really knowing what the meanings of most of the headers are.

TO ME, it looks like Current LSN, and possibly Transaction ID MIGHT be date or time but in a different format?

The Current LSN looks like this : 00000e46:00000a4d:0002 The Transaction ID looks like this: 0000:0000da25

Would I be wrong in thinking this? If so, does anyone know how I would be able to view the time/date in sql server transaction logs using ONLY SQL Server.


Solution

  • You need to use ::fn_dblog

    Now, I haven't tried using it myself but some usage is described here