sybase自动清除日志
在图形界面定位到日志端,弹出属性框,选择thresholds标签页,编辑里面的sp_thresholdaction存储过程,设定在段空间还剩多少的时候就触发某个语句或存储过程,这个存储过程实现DUMP TRAN的功能,也可用如下语句实现
create procedure sp_thresholdaction
@dbname varchar(30),
@segmentname varchar(30),
@space_left int,
@status int
as
dump tran @dbname with no_log
go
create procedure sp_thresholdaction
@dbname varchar(30),
@segmentname varchar(30),
@space_left int,
@status int
as
dump tran @dbname with no_log
go
作者: petutor 发布时间: 2007-07-04
学习!
作者: mdk 发布时间: 2007-07-04
用存储过程来实现清空日志,的确不错! 学习了。
作者: Jerry1126_Gao 发布时间: 2010-10-11