I want to call a Stored Procedure which takes two parameters(username & password) and returns two values of type int( ‘result’ and ‘group’ ) ‘result’ for checking whether the user is valid or not and ‘group’ simply shows the group number of customers
there are three type of groups
group#1 : admin users
group#2 : custom users
grpup#3 : special users
below is my current code which only returns result
ALTER PROCEDURE [dbo].[suserpass]
@username Varchar(50),
@password varchar(50),
@result int OUTPUT,
@group int OUTPUT
AS
IF EXISTS (select [user] from [userpassTable] where [user] = @username and [pass]=@password)
set @result=1
else
set @result=0
thanks
you need do soemthing as below you need to set both output variable that will do your task …..