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
195 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
'Between' is such a common word we rarely think about it but in SQL it has a very specific definition we should be aware of. While most database vendors will have their own unique phrases to describe it (see references at end) the concept in common …
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

747 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

12 Experts available now in Live!

Get 1:1 Help Now