Nov 07 2023 10:47 PM
Read insert/update/delete queries from SQL transaction log file. I am using to read fn_dblog function , using this function I could see only transaction name only not read transaction queries. I think there some 3rd party tools they have read that in the same way I want to read that transaction queries. In log shipping restore job read that transaction log file and restore the data in to secondary database tables. I want to know how to read that DML operation from Transaction log (.ldf) file.
Nov 08 2023 02:59 AM
I could see only transaction name only not read transaction queries.
SQL Server don't log the queries, only data changes; so you can't get it.
You have to implement a DML logging.
Nov 08 2023 03:16 AM
Nov 08 2023 10:49 PM