

You can see in the above screenshot that the transaction name column shows the database Of the columns and rows but I have tried to capture a few informative columns here. Run the below SQL code to create a database and table.Īs the total number of rows and columns are large, I gave a snapshot of some To show how this works, we will create a database and a table to play with thisįunction. NULL is the default for this function and this will return all log records from The function fn_dblog requires a beginning LSN and ending LSN for a transaction. I strongly suggest testing any undocumented features in a lab Transaction log which contains very informative data about things that are happening Undocumented function called fn_dblog which enables you to read data from your Helpful if you want to know what the transaction log file captures. I will explain how to read your database transaction log file and how transactionsĪre written for your database if you perform any database activity. See what entries are made for database transactions. SQL Server captures in the transaction log file? In this tip we will takeĪ look at a SQL Server function that you can use to read the transaction log to Have you ever wondered how SQL Server tracks transactions and what information

Learn from 20 years of experience about how to turn SQL Server Worst Practices such as database corruption, security, scaling, monitoring, cloud cost management, and SQL Agent monitoring into Best Practices to properly manage your database environment. Free MSSQLTips Webinar: How to Avoid Worst Practices as a SQL Server DBA
