发布网友 发布时间:2022-04-25 12:26
共2个回答
热心网友 时间:2022-04-27 15:59
如下:
Create PROCEDURE [dbo].[SendEmail] @count int,@email nvarchar(50) output,@name nvarchar(20) output
AS
BEGIN
select @email= UserEmail,@name=RealName from (select *,ROW_NUMBER() over(order by Id) rownum from tb_Admin where DATEDIFF(DD,LoginTime,GETDATE())>30) t where t.rownum =@count
END
热心网友 时间:2022-04-27 17:17
您好,请问您是想知道sqlserver2014作业失败后怎样配置邮件提醒吗?