标签:io ar sp art on log bs sql as
前期准备:
use master;
create table LoginLog(LoginName nvarchar(32),LoginTime datetime);
create procedure sp_recordLoginLog #注意没有参数的情况下不可以有 “()”
as
begin
insert into LoginLog(LoginName,LoginTime) values(system_user,getdate());
end
go
---------------------------------------------------------------------------------------------------------------------------------------------------------
方法 1、
execute sp_procoption @ProcName = ‘sp_login‘,@OptionName = ‘startup‘,@OptionValue = ‘true‘;
go
标签:io ar sp art on log bs sql as
原文地址:http://www.cnblogs.com/JiangLe/p/4020762.html