Results 1 to 3 of 3

Thread: reduce MSSQL ldf log file size

  1. #1
    Join Date
    Apr 2006
    Location
    Amsterdam
    Posts
    352
    Thanks
    20
    Thanked 11 Times in 11 Posts

    Default reduce MSSQL ldf log file size

    Hey Guys,

    How can I reduce MSSQL ldf log file size?
    Its now over 145MB while the row size of the database itself is only 15 MB. Since the whole database size is added to the webspace, this really adds up.

    Any clues?

  2. #2
    Join Date
    May 2007
    Location
    Eauze, France
    Posts
    175
    Thanks
    10
    Thanked 17 Times in 15 Posts

    Default

    Try this:

    DBCC SHRINKDATABASE
    ( 'database_name' [ ,target_percent_free ] )

    Full syntax in transactional sql reference.

    David.

  3. #3
    Join Date
    Jan 2006
    Posts
    419
    Thanks
    2
    Thanked 16 Times in 16 Posts

    Default

    had some probs in past shrinking log files, not sure if the following will help otherwise try www.sqlteam.com

    backup log dbname with truncate_only


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. PHP: Calculating a Directory File Size
    By nick in forum Code Sharing
    Replies: 17
    Last Post: 29th January 2006, 09:32 AM
  2. Popup size
    By CS New Media in forum HTML/CSS/JavaScript
    Replies: 1
    Last Post: 7th January 2006, 04:41 PM

Bookmarks

Posting Permissions

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