Michael J. Swart does a bit of shuffling:
Typically as developers, we don’t care about these values. But when we do want to dig into the transaction log, we can do so with
sys.fn_dblog
which takes two optional parameters. These parameters are LSN values which limit the results ofsys.fn_dblog
. But the weird thing is thatsys.fn_dblog
is a function whose LSN parameters are NVARCHAR(25).The function
sys.fn_dblog
doesn’t expect binary(10) values for its LSN parameters, it wants the LSN values as a formatted string, something like:0x00000029:00001a3c:0002
.
Never fear, though: Michael’s got us covered. Click through for a conversion function.