Archive for the ‘Sql Server’ Category

This is undocumented sp to read the logfile.

select * from fn_dblog(null,null)

This is one more undocumeted sp to find out number of VLF.
DBCC LOGINFO

Status 2 => VLF in use
Status 0 => VLF not in use.

convert this post to pdf.