C Sql Server Stored Procedure Not Returning Expected Value Stack

C Sql Server Stored Procedure Not Returning Expected Value Stack