TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Nandha Kumar Nagarajan
NA
284
57.2k
5times validation
Apr 23 2019 1:05 AM
hi friends
i dont know how to write a query help me
when user enter wrong password 5 times is wiill be locked
sp below
ALTER PROCEDURE CHK_UNAME_PASS
(
@UNAME VARCHAR(100),@PASS VARCHAR(100)
)
AS
BEGIN
SET NOCOUNT ON;
IF EXISTS(SELECT *FROM TBL_LOGIN WHERE USERNAME= @UNAME AND PASWORD=@PASS)
PRINT 'LOGIN SUCCESFULLY'
ELSE
BEGIN
PRINT 'INCORRECT USERNAME OR PASSWORD'
END
END
EXECUTE CHK_UNAME_PASS @UNAME='NANDHA',@PASS='101';
Reply
Answers (
2
)
What we can use Instead of Replace
execute flag in sql