Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Truncating log

Author  Topic 

jpotucek
Constraint Violating Yak Guru

273 Posts

Posted - 2006-06-12 : 15:43:58
Forgive my ignornace, but I've already been to BOL and I still don't really understand what to do.

We have an Application that has gotten extremely sluggish as of late.
Then SOftware Vendor has suggested that we Truncate the log to improve performance.

This is what I have:

From EM, it shows the Database as being 122mb in size with 0.00 space available. both the log and data files are set to grow automatically by 10%
The Database is in SIMPLE Recovery Mode.

I have plently of Harddrive space on both the drive where the Data file lives and on the Drive where the logfile lives.

Any suggestions on Truncating the log?????

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2006-06-12 : 15:52:39
Truncating the log will not improve performance. Also, you can not truncate a log when using SIMPLE recovery model.

If the database is 122MB, then all queries should be relatively fast unless the queries and/or the database are poorly designed.

Tara Kizer
aka tduggan
Go to Top of Page

jpotucek
Constraint Violating Yak Guru

273 Posts

Posted - 2006-06-12 : 15:57:02
Thanks Tara. Do you think that the DB have 0.00 space available is a problem?
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2006-06-12 : 16:00:49
Yes. When data is added, that query will have to wait for the expansion to occur. So you will see slow performance as the database file is growing. It shouldn't be too slow though as 10% is only 12MB right now.

Tara Kizer
aka tduggan
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2006-06-13 : 02:06:55
"We have an Application that has gotten extremely sluggish as of late"

Did something else change on the machine at the time it started to get sluggish? Maybe the problem is elsewhere

Kristen
Go to Top of Page

DMcCallie
Yak Posting Veteran

62 Posts

Posted - 2006-06-16 : 10:41:05
Try this..
dbcc updateusage (dbname)
Go to Top of Page
   

- Advertisement -