Forum Discussion
toukui
Apr 22, 2021Copper Contributor
How to query the content of LDF file in SQL Server
How to query the content of LDF file in SQL Server though sql sentence
olafhelper
Apr 23, 2021Bronze Contributor
Hello,
There is no supported way to read the content of the log file (LDF), that's omething completley internal.
But there is the unsupported function fn_dbog:
SELECT COUNT(*) FROM fn_dblog(null,null)
- toukuiApr 23, 2021Copper Contributor
thanks,guys.But is the result of this SQL query the whole content of the log?olafhelper