Hello....

I wrote a stored procedure and at the bottom of SP I wrote

IF @@rowcount=1
return 0
else
begin
return 50002
end

I wanna have the value whether is 0 or 50002 value in Visual Basic.

How can I have this values in VB, I appreciate if you guys help me out

Thankx