Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2002
    Posts
    9

    Unanswered: Removing Extra Transaction Logs

    I created some extra transaction logs for a database because of a lack of space however I want to now get rid of those and only have one primary transaction log. I cannot move data into other files like you can with a filegroup, how do I get rid of the files ?

  2. #2
    Join Date
    Oct 2002
    Posts
    369

    Re: Removing Extra Transaction Logs

    Originally posted by yorkie
    Q1 I created some extra transaction logs for a database because of a lack of space however I want to now get rid of those and only have one primary transaction log. I cannot move data into other files like you can with a filegroup, how do I get rid of the files ?
    -- A1 First empty the TL file(s) then remove it (them) from the DB. For example:

    dbcc ShrinkFile('TL_FileName', EmptyFile)
    Go

    -- Then alter the DB to remove it

    Alter Database DBName
    Remove File TL_FileName
    Go

  3. #3
    Join Date
    Dec 2002
    Posts
    9
    Thanks, worked a treat.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •