SELECT statement does not work.
The IF condition below returns TRUE when it should not.
If i use the column name explicitely and pass the member_id as parameter it works.
Declaration and stuff like that is done..
@erMsg and @err are Output params.
@member_id_typ and @member_id are input params.
IF (SELECT COUNT(*) FROM member_info WHERE @member_id_typ = @member_id ) = 0
BEGIN
SET @erMsg = @erMsg +'**'+"Person with " + @member_id_typ + "-->><b>" + @member_id + "</b> not Found"
SET @err = 'Y'
END
The IF condition below returns TRUE when it should not.
If i use the column name explicitely and pass the member_id as parameter it works.
Declaration and stuff like that is done..
@erMsg and @err are Output params.
@member_id_typ and @member_id are input params.
IF (SELECT COUNT(*) FROM member_info WHERE @member_id_typ = @member_id ) = 0
BEGIN
SET @erMsg = @erMsg +'**'+"Person with " + @member_id_typ + "-->><b>" + @member_id + "</b> not Found"
SET @err = 'Y'
END