Reduce Log File Size

  • How can i reduce my Sql database .LDF file size.

    Even i set Auto Shrink Property is True

    da.mdf Size is 15.25 MB

    da_log.ldf size is 128.00 MB.

    I am using Sql Server 2008 and database is updated from 2005 to 2008 Sql Server.

    In case any Issue Of Version.

  • What is the Recovery Model for the database?

    😎

  • First thing you can do is turn autoshrink off. That's a setting which should never be enabled.

    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
  • @itsgaurav

    Can you please post your questions on the correct forums for the SQL Server version you're using? It will make it easier for you to get answers and we won't have to keep moving them. Thanks.

  • Are you running log backups?

    [/url]

    And, I'm with Gail, turn off auto shrink.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • This was removed by the editor as SPAM

  • At First Thanks For Reply

    My Sql Server Version is :

    Microsoft SQL Server 2008 (RTM) - 10.0.1600.22 (X64) Jul 9 2008 14:17:44 Copyright (c) 1988-2008 Microsoft Corporation Enterprise Edition (64-bit) on Windows NT 6.1 <X64> (Build 7600: )

    Recovery Model : Full

    Compatibility Level : Sql Server 2008 (100)

    Now I Set Auto Shrink Property Is Off.

    After That I have To do something or it will auto reduce kindly suggest ?

  • Did you read the post I linked to? You need to have log backups enabled.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

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

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