Use of FN_DUMP_DBLOG
fn_dump_dblog is an another undocumented hero in SQL Server function that read transaction log native or natively compressed backups.
Here is the syntax to execute fn_dump_dblog function on a specific transaction log backup and specify all 63 parameters:
using fn_dump_dblog function,
you can read the transaction's and identify the current LSN,
convert the Current LSN into the used format in Restore command similarly as in the last post i.e. use-of-fndblog
fn_dump_dblog is an another undocumented hero in SQL Server function that read transaction log native or natively compressed backups.
Here is the syntax to execute fn_dump_dblog function on a specific transaction log backup and specify all 63 parameters:
SELECT
[Current LSN], [Operation], [Context],
[Transaction ID], [transaction name], [Description]
FROM fn_dump_dblog (NULL,NULL,N'DISK',1,N'D:\Mydb1\mydb1_trn1.trn',
DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,
DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,
DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,
DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,
DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,
DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,
DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT,DEFAULT, DEFAULT);
Here is the output:using fn_dump_dblog function,
you can read the transaction's and identify the current LSN,
convert the Current LSN into the used format in Restore command similarly as in the last post i.e. use-of-fndblog
No comments:
Post a Comment