|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Abundantly growing log (ldf) file!!! Need Help!
Hi! I'm a MS SQL Server 2000 user and I just need everyone's help on my abundantly growing database log file! I have a 2GB worth of database (mdf) and its log file grows up to 17GB and occupies my harddisk space! Hope someone could help me in determining how I could possibly resolve this file growth without making any impact on my DB's performance. Thanks!
![]() |
|
#2
|
|||
|
|||
|
Hi,
If you keep your databases recovery mode as simple then sql server will create less log data. If you have to keep the recovery mode as full, then after full database backups clear the transaction logs. Eralper http://www.kodyaz.com |
|
#3
|
|||
|
|||
|
Many other things you can try as well....
1 change the Recovery model to Simple (If you back up your logs daily you wont need that feature much often) 2. Backup the database with truncate_only option 3. Have auto-shrink option checked under properties of the databases. 4. shrink the file size : If you have access to Enterprise manager on select the database >> Right click on your Database >> Shrink Database >> Files button >> Select log file >> Specify minimum available size 5. There are these undocumented commands DBCC SHRINKFILE and SHRINKDATABASE commands You can use the Microsoft Technet site to search for these commande or Google them |
![]() |
| Viewing: Dev Articles Community Forums > Databases > Microsoft SQL Server > Abundantly growing log (ldf) file!!! Need Help! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|