Truncating the log after automatic checkpoints

System administrators can truncate the transaction log when Adaptive Server performs an automatic checkpoint.

To set the trunc log on chkpt database option, which will truncate the transaction log when an automatic checkpoint occurs, execute this command from the master database:

sp_dboption database_name, "trunc log on chkpt", true

This option is not suitable for production environments because it does not make a copy of the transaction log before truncating it. Use trunc log on chkpt only for:

To protect your log from running out of space, design your last-chance threshold procedure to dump the transaction log. For more information about threshold procedures, see Chapter 16, “Managing Free Space with Thresholds.”