I have a SQL Server backup (.bak
) file, and I want use fn_dump_dblog
(undocumented function) on it to get all transaction history from it.
I read this article https://www.mssqltips.com/sqlservertip/3555/read-sql-server-transaction-log-backups-to-find-when-transactions-occurred/
and do the same but fn_dump_dblog
result only shows query of restoring of that database (most of the rows are NULL)
Please help me - what am I doing wrong? Or there is any alternative way to do that?
Note: I am taking backup in full mode
I already tried
fn_dblog
but that does not help meI can not use
fn_dblog
orfn_dump_dblog
on database directly so I am taking backup (.bak
file) every day and then restore it to my local system.- can i get transaction history if i have .trn file ?