Log file not shrinking

  • hi ,

    one of our database log got full. we have trancate log and we have shrink log file as like below.

    backup log database db_name with truncate_only

    use db_name

    dbcc shrinkfile(db_name_log)

    it's ran successfully.but log usage showing like as same before . please assistence on this.

  • http://www.sqlservercentral.com/articles/Transaction+Log/72488/

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • Read Gail's article. It has some good advice in it.

    Also, you should not be regularly truncating and shrinking. If you are in full mode, set up transaction log backups.

  • Steve Jones - SSC Editor (3/23/2011)


    Also, you should not be regularly truncating and shrinking. If you are in full mode, set up transaction log backups.

    And on that point... Managing Transaction Logs[/url]

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • hi,

    the database in bulkloged mode.please assistence on this

  • See the above-mentioned articles. Bulk-logged, like full recovery, requires regular log backups.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • i've had this on simple logged recovery models as well. in our case reinitializing replication usually solves it

Viewing 7 posts - 1 through 6 (of 6 total)

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