When I execute
SELECT [Current LSN]
FROM sys.fn_dblog(NULL,NULL)
The LSN values are presented in the format
'000000CB:00000055:0002'
However when I try and pass the start and end LSN parameters explicitly to fn_dblog
in that format
SELECT *
FROM sys.fn_dblog('000000CB:00000055:0002', '000000CC:00000088:000A')
I get an error, saying...
Msg 9005, Level 16, State 3, Line 1 Either start LSN or end LSN specified in OpenRowset(DBLog, ...) is invalid.
Why doesn't this work and what format do they need to be in?
I did some studies based on this site about LSN and log files... but, or I got an error, or, when I execute the command with the two parameters, I just got 2 rows of informations... I considerate that is intresting, because, when I use a program to read the data-log, I got all the information's.
How I can make to read all the data and informations of log using SQL ?