I am using SQL Server 2008 Express recording sampling data. Now I have 5 databases Arbin_Result1~Arbin_Result5, they are in exactly same structure with same tables. Now Arbin_Result1/2/3/5 are producing ldf file under 5MB, but Arbin_Result4 has a 4.1Gb ldf file. And I found a lot of data which should be in Arbin_Result4 is missing.
I checked error log files of SQL Server in LOG folder, and there is no error recorded in it.
Now I want to find out what is the reason that caused big ldf file. I use below query to get info.
Query 1
use [Arbin_Result4]
Selet * from ::fn_dblog(null, null)
This query returns 15825 records.
Query 2
use [Arbin_Result5]
Selet * from ::fn_dblog(null, null)
This query returns 10235 records.
It seems to be similar scale.
but ArbinResult_5_log.LDF is only 4Mb, and ArbinResult_4_log.LDF is 4.01Gb!
Actually my program just appends sampled data and events into two tables. There is no transactions at all. How come there is a huge LDF file? I don't want to experience lost data again. How can I find out what caused my huge LDF file? Is there any tool to analyze the LDF file?