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
221 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 143

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Confronted with some SQL you don't know can be a daunting task. It can be even more daunting if that SQL carries some of the old secret codes used in the Ye Olde query syntax, such as: (+)     as used in Oracle;     *=     =*    as used in Sybase …
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.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

832 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