Two log files consolidation

  • Hi Guys,

    I have two T-log files for an existing database. How do I consolidate these 2 log files into one ?

    Thanks,

  • If the database is in Full recovery:

    After a tran log backup,

    ALTER DATABASE [DATABASENAME]

    REMOVE FILE [SECONDARYLOGFILENAME]

    If the database is in Simple recovery:

    Issue a CHECKPOINT

    ALTER DATABASE [DATABASENAME]

    REMOVE FILE [SECONDARYLOGFILENAME]

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

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