This article is also available for viewing online at https://knowledgebase.winspc.com/questions/210/ |
How do I manage the Microsoft SQL Server transaction log?
If you are using Microsoft's SQL Server as the backend database for WinSPC, you may need to manage the database transaction log in order to keep it to a manageable size. The transaction log is used by the database server to record changes to a particular database in the event that those modifications have to be reverted (or "rolled back"). Under some database settings, the transaction log can grow unbounded, filling up the hard drive of the server as well as decreasing the overall performance of the database server and WinSPC. In extreme cases, if the transaction log cannot increase in size anymore (due to it completely filling the hard drive), errors regarding the transaction log will appear in WinSPC. Microsoft SQL Server (2000, 2005, and 2008) supports three different ways for managing the transaction log (called the "Recovery Model"):
The recovery model can be configured in the database properties (using SQL Server Enterprise Manager). In Microsoft SQL Server 2005 or 2008, it can be found on the 'Options' page: ![]() In Microsoft SQL Server 2000, it can be found on the 'Options' tab: ![]() In general, for WinSPC, we recommend either using the "Simple" or "Full" recovery model. If you are using the "Full" recovery model, you will need to ensure that the transaction log is being truncated on a periodic basis. As mentioned previously, this is normally done following a database backup. If your transaction log is very large, one way to permanently remove some of the older entries (and to reduce the size of the log file) is to do the following:
More information regarding managing the size of the transaction log can be found on Microsoft's website here: http://msdn.microsoft.com/en-us/library/ms345583.aspx http://support.microsoft.com/kb/873235 |