Tran Log VLF 's - how exactly do they work?

  • Lets say i have a tran log with 4 VLF's.

    1st one is full, with no open transactions.

    2nd one is half full when i open a transaction and the rest are empty.

    I forget to close my transaction.

    All VLF's fill up until i reach the 1st one.

    Just before the Transaction log loops back to the first VLF, i have run a log backup and done a checkpoint.

    My Question is

    As there is an open transaction in VLF2, will the log backup and checkpoint i ran actually truncate the 1st VLF or will the tran log simply grow a bit more to accommodate further transactions?

  • No VLFs would be truncated.

    select log_reuse_wait_desc from sys.databases where name = '<dbname>'

    would return "ACTIVE_TRANSACTION"

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply