i am trying develop login page , in that calling SP for validate the records , but it return always 0 .
please find the SP code here
CREATE PROCEDURE [DBO].[SP_LOGIN]
@USERNAME VARCHAR(50),
@PASSWORD VARCHAR(50),
@RESULT VARCHAR(50) OUT
AS
BEGIN
SET NOCOUNT ON;
SELECT count(*) FROM TBL_USERDETAILS WHERE USERNAME = '@USERNAME' AND PASSWORD = '@PASSWORD'
RETURN
END
Please give me proper solution
5 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.

Pankaj Kumar ChoudharyPosted Aug 1, 2015, 11:48 PM
Vignesh ManiPosted Aug 1, 2015, 7:59 AM
Manas MohapatraPosted Aug 1, 2015, 7:51 AM
Ankit ShuklaPosted Aug 1, 2015, 7:49 AM
Rajeesh MenothPosted Aug 1, 2015, 7:39 AM