logspace2.sql

March 31, 1998



Every site should have two "auto-log-dump" tasks for each database.

First, should be an alert set on the 1105 error: syslogs is full. It should do a dump tran with no_truncate.

The second is an auto dump that tests to see if a log is over X percent full and if so, DUMP TRAN.

The second case can be accomplished with a perfmon alert using SQLALRTR but that means someone has to run perfmon. This script simply runs DBCC SQLPERF(logspace) to a table and then reads the table for any DB's with logs over X percent full. If so, it dumps the T-log.

For SQL Server 6.5

Author: Tom De Lancey


Download Script:
logspace2.sql


Disclaimer: We hope that the information on these script pages is valuable to you. Your use of the information contained in these pages, however, is at your sole risk. All information on these pages is provided "as -is", without any warranty, whether express or implied, of its accuracy, completeness, or fitness for a particular purpose... Disclaimer Continued


Back to Database Journal Home








The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers