What is the true sequence to make this code run as I tried many time but I don\'t get a valid result
// the code of SQL stored procedure
set ANSI_NULLS
Add another parameter for the return value
ALTER PROC [dbo].[login_proc] @username Varchar = 50, @password Varchar = 50, @result int OUTPUT
Examples can be viewd here.