Hi, I am new to stored procedures and need some help is defining an SP where 3 variables are passed to a SP and a derived value is passed back.
The table name is Resource_Auth with the following attributes:-
Resource ID
password
resource_Active
The following variables are passed: -
Resource ID
Password
Resource_Active
Output
User_Authorised
Stored procedure needs take the variables and if
the password matches that on the database for the resource ID and the Resource_Active is set to 'Y' it
passes User_Authorised back as ‘Y’ else is will pass back ‘N’
Is this possible within a SP.
Thanks
The table name is Resource_Auth with the following attributes:-
Resource ID
password
resource_Active
The following variables are passed: -
Resource ID
Password
Resource_Active
Output
User_Authorised
Stored procedure needs take the variables and if
the password matches that on the database for the resource ID and the Resource_Active is set to 'Y' it
passes User_Authorised back as ‘Y’ else is will pass back ‘N’
Is this possible within a SP.
Thanks