Posted By

rengber on 03/21/07


Tagged

sql StoredProc ADONet


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

umang_nine


Get the Return Value from an SQL Stored Procedure


 / Published in: C#
 

  1. parameters[1] = new SqlParameter("@Return_Value", SqlDbType.Int);
  2. parameters[1].Value = -1;
  3. parameters[1].Direction = ParameterDirection.ReturnValue;
  4.  
  5. if(Int32.Parse(parameters[1].Value.ToString()) != -1)
  6. {
  7. //Success
  8. }

Report this snippet  

You need to login to post a comment.