Home : Products : Hach WIMS : Hach WIMS Client : Documentation : How-To Articles : Shrink OPSROOT_Log.LDF file
Q13362 - HOWTO: Shrink OPSROOT_Log.LDF file

The OPSROOT_Log.LDF file can grow very large (filling the hard drive) causing problems in Hach WIMS.  The problem occurs when the RECOVERY MODE is set to FULL for the OPSROOT database.  This happened in older versions of Hach WIMS and OPS SQL as those installs may have set the recovery mode incorrectly.  To Correct:

1. Get into Microsoft SQL Server Management Studio Express and log into the WIMS database.  See Note below if SQL Server Management Studio is not available.

2. Open the OPSROOT database, click New Query and paste in the following T-SQL commands and click Execute:

ALTER DATABASE OPSROOT
SET RECOVERY SIMPLE;
GO
DBCC SHRINKFILE(OPSROOT_Log, 1);

SQL Server will return results indicating the commands were executed:

The logfile should now be shrunk:

NOTE: The WIMS OPSROOT SQLCONSOLE (Admin Console, Action Scripts, Execute custom SQL commands against the OPSROOT database. Experienced users only! command) can be used to execute the T-SQL commands also (GO and ; NOT needed):

ALTER DATABASE OPSROOT
SET RECOVERY SIMPLE
DBCC SHRINKFILE(OPSROOT_Log, 1)

 

Related Articles
No Related Articles Available.

Article Attachments
No Attachments Available.

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
Overall good, but the MSDE install could very well be in: C:\HachWIMS\DBMS\MSDE\MSSQL.1\MSSQL\Data Approved: 8/12/2011 10:11 AM
Clear, concise, and it worked! Approved: 8/10/2011 9:17 AM
Created on 3/22/2011 5:16 PM.
Last Modified on 12/29/2011 9:33 AM.
Last Modified by No Author Name Available!.
Article has been viewed 6189 times.
Rated 7 out of 10 based on 7 votes.
Print Article
Email Article