Transaction log fle

Last post 07-26-2008 7:32 PM by Rabani. 3 replies.
Page 1 of 1 (4 items)
Active Topics My Discussions Unanswered Sort Posts: Previous Next
  • 07-25-2008 10:44 AM

    Transaction log fle

     Hi,

    My transaction log is full and it has occupied all the space in the disk. Can somebody please, suggest me the best way to empty it.

    Thanks a lot

  • 07-25-2008 9:30 PM In reply to

    Re: Transaction log fle

    Hi,

    If you are able to log on Server, then try to take a backup of the log file with no backup option. then truncate & shrink the log file. This way you can free up the space from the log file which has been occupied on disk.

  • 07-26-2008 1:45 PM In reply to

    • preethi
    • Top 100 Contributor
    • Joined on 07-01-2003
    • Sri Lanka
    • Posts 169

    Re: Transaction log fle

    In case you don't have space to take a backup only try this method. Otherwise dont try this. (Especially if the database you are refering is production data) 1. Try to restart the server. By doing this you make the tempdb recreated. You may gain some space to take a log backup. 2. If the above method too doesn't give enough space to backup. You need to change the recovery model of the database into SImple. Truncate the transaction log using Shrink-> File option. Change the recovery model to the original setting and take a full database backup immediately after. Remember, thsi has its own risks.
    Cheers,
    Preethiviraj Kulasingham
    MCITP:DBA
  • 07-26-2008 7:32 PM In reply to

    Re: Transaction log fle

     Thanks a lot chetan and perthi. I was able to truncate my transaction log and got my space back.

Page 1 of 1 (4 items)
Active Topics   My Discussions    Unanswered Posts


© 2000 - 2007 vDerivatives Limited All Rights Reserved.