@out bit output
CREATE proc checkuser @user nvarchar(50), @pass nvarchar(50) as declare @result int declare @out bit begin select @result= COUNT(*) from users where userr=@user and pass=@pass if(@result>0) set @out=1 return @out end go
CREATE proc checkuser @user nvarchar(50), @pass nvarchar(50) as declare @result int declare @out bit set @result=(select COUNT(*) from users where userr=@user and pass=@pass) if (@result>0) begin set @out=1 select @out end go
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)