在SQLSERVER触发器不能和外界交互。可以把信息保存在表中
if condition
begin
   insert into t_oplog values (91001, ' information ' )
   RAISERROR ('information.', 16, 1)  --该操作会终止
end