Return to Snippet

Revision: 2665
at March 21, 2007 20:32 by rengber


Initial Code
parameters[1] = new SqlParameter("@Return_Value", SqlDbType.Int); 
parameters[1].Value = -1; 
parameters[1].Direction = ParameterDirection.ReturnValue; 

if(Int32.Parse(parameters[1].Value.ToString()) != -1)
{
   //Success
}

Initial URL

                                

Initial Description

                                

Initial Title
Get the Return Value from an SQL Stored Procedure

Initial Tags
sql

Initial Language
C#