Solved

Our MSSQL Database server gets slow as the log files are not being cleared automatically. When I watch the Directory of data files it show old date in the Date modified column. The Date is modified a

Posted on 2008-10-15
4
213 Views
Last Modified: 2010-03-20
Our MSSQL2000 Database server gets slow every 2-3 days as the log files are not being cleared automatically. When I watch the Directory of data files it show old date in the Date modified column. The Date is modified after restarting server.
How could the problem be resolved?. What setting to be done in the server?
0
Comment
Question by:sgkgaglg
  • 2
4 Comments
 
LVL 37

Expert Comment

by:momi_sabag
ID: 22719882
you can shrink the log files
0
 
LVL 37

Accepted Solution

by:
momi_sabag earned 250 total points
ID: 22719883
DBCC SHRINKFILE (N'name' , 0, TRUNCATEONLY)
0
 
LVL 142

Assisted Solution

by:Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3] earned 250 total points
ID: 22719930
you have to first ensure that you (regulary) backup the transaction log (BACKUP LOG statement, not the physical file itself).
that will mark the space used internally as reusable, and also the DBCC SHRINKFILE command above will then be able to effectively reduce the t-log file.
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now