Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - LDF File
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

LDF File

 Post Reply Post Reply
Author
Melkor View Drop Down
Groupie
Groupie


Joined: 11 December 2006
Location: United States
Status: Offline
Points: 80
Post Options Post Options   Thanks (0) Thanks(0)   Quote Melkor Quote  Post ReplyReply Direct Link To This Post Topic: LDF File
    Posted: 17 November 2007 at 6:11am
The .LDF log file associated with the SQL database for this forum platform...

What is it? Why is it so much larger than the .MDF file? Can I delete it safely?

Mine is currently sat at a whopping 31gb on my server and it hurts.
Back to Top
Jono View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 18 September 2006
Location: United Kingdom
Status: Offline
Points: 100
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jono Quote  Post ReplyReply Direct Link To This Post Posted: 17 November 2007 at 10:16am
The LDF file contains the tranaction logs. It is used if your recover the database from a backup.
 
The transactions should get comitted when you backup your SQL database (usually via a maintenance plan). The "recovery model" of the database also affects if you have a transaction log (a simple recovery model should create a very small LDF file).
 
Try right clicking the database in Enterprise manager and performing a backup, this may reduce the log file. If that doesn't work, post back and we can look at some other options.
Back to Top
Jono View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 18 September 2006
Location: United Kingdom
Status: Offline
Points: 100
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jono Quote  Post ReplyReply Direct Link To This Post Posted: 17 November 2007 at 10:19am
This article may be of help: http://forums.databasejournal.com/archive/index.php/t-21974.html
Have a look at the SQL books on-line before performing the commands, so you know what affect they will have. As always, take a backup BEFORE performing any of the actions - just in case!
 


Edited by Jono - 17 November 2007 at 10:27am
Back to Top
Melkor View Drop Down
Groupie
Groupie


Joined: 11 December 2006
Location: United States
Status: Offline
Points: 80
Post Options Post Options   Thanks (0) Thanks(0)   Quote Melkor Quote  Post ReplyReply Direct Link To This Post Posted: 17 November 2007 at 8:27pm
Thank you for your helpful replies, Jono.

I ended up changing the recovery mode to simple from full (I make weekly back-ups by routine so having it on full was really unnecessary anyway) and then I reduced the file size from there.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.