I have a stored proceedure that returns 1,2,3 or 4 depending on what happened in the proceedure. How can i get that return code back to vb.net?
I only know how to get the number of rows affected, i woudl appreciate any help. This is a little snip of the code i have:
cmdParms.Connection = sqlConn
cmdParms.CommandType = CommandType.StoredProcedure
cmdParms.CommandText = strSPName
introwsaffected = cmdParms.ExecuteNonQuery
sqlConn.Close()
Return introwsaffected
What needs to be added to get the return code?
I only know how to get the number of rows affected, i woudl appreciate any help. This is a little snip of the code i have:
cmdParms.Connection = sqlConn
cmdParms.CommandType = CommandType.StoredProcedure
cmdParms.CommandText = strSPName
introwsaffected = cmdParms.ExecuteNonQuery
sqlConn.Close()
Return introwsaffected
What needs to be added to get the return code?