To start I am new to digging into .ldf entries, I don't even know how to track any of these logs back to the objects creating them, if someone could explain that in their answer it would be appreciated.
Anyways, I have a SQL Server setup with a few databases, and ran into an issue where my hard drive had filled up unexpectedly.
After some searching I found that the log file (.ldf
) for a database had expanded to immense size (500+ GB), while the database itself is only about 20 GB.
All databases are set for full transactional logging, but only this one database has this problem.
Taking a look at the logs and doing some quick type aggregation, I can see a few things.
out of the top 10,000,000 rows in the log file, 55% are
LOP_INSERT_ROW
followed by 11%LOP_FORMAT_PAGE
and 8%LOP_LOCK_XACT
Of those
LOP_INSERT_ROW
logs, 52% areLCX_HEAP
and 46% areLCX_INDEX_LEAF
The unique thing about this database is it had the generic stored procedures
sys.sp_MScdc_capture_job
andsys.sp_MScdc_cleanup_job
run on it at one point.
I disabled these jobs weeks ago but the log file is still gaining size rapidly.
How do I track down what's generating all of these log entries?