在图形界面定位到日志端,弹出属性框,选择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
本文详细介绍了如何通过SQL触发存储过程来实现DUMP TRUNCATE功能,包括创建存储过程、参数设置及应用实例。
516

被折叠的 条评论
为什么被折叠?



