LDF file growth

  • Hi,

    one of our production server X- database --- LDF file is growing

    SIZE MAXSIZE GROWTH

    X_DataX.MDFPRIMARY119936 KB Unlimited25%data only

    x_LogX.LDF NULL 21763456 KBUnlimited25%log only

    Total DB size is now : 21370.50 MB

    AS PER MY KNOWLEDGE SHINKING DB IN PRODUCTION IS NOT RECOMMAMNDED

    Please provide the solution to reduce the LDF file size

  • First, you need to find out what is causing the log file to grow. You could start with some simple steps like running sp_who2 etc and find out details about processes running in the db. Based on that you could go forward. Check for open transacations etc.

    M&M

  • Let me guess, full recovery model, no log backups?

    Please read through this: http://www.sqlservercentral.com/articles/64582/

    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
  • Thanks Gail,

    it is in full Recovery only

    i took full backup then i scheduled Trn backup now it is reduced

    Thanks in advance

  • Great, now make sure that you're running those tran log backups regularly.

    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
  • Take T-Log back ups regularly, It helps

  • Boy, if I had a nickel for every one of these types of posts - or every time I have seen a CLIENT do this . . . :w00t:

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

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

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