ALTER TRIGGER Trigger2 ON dbo.LeaveForm AFTER INSERT AS Begin EXEC Biometrics_InsertFrom_LeaveForm End
ALTER PROCEDURE dbo.Biometrics_InsertFrom_LeaveForm AS Declare @Count int Declare @LeaveFrom datetime Declare @LeaveTo datetime Declare @Approve bit set @Approve='True' select @Count=count(*) from LeaveForm where Approve=@Approve and (convert(varchar,@LeaveFrom,101)=convert(varchar,getdate(),101) or convert(varchar,@LeaveTo,101)=convert(varchar,getdate(),101)) if(@Count > 0) begin INSERT INTO Biometrics (PCL,PLE) VALUES (getdate(),getdate()) end RETURN
Print @Count
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)