Skip to content

Instantly share code, notes, and snippets.

@crowcoder
Last active October 15, 2016 16:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crowcoder/2f7c180b78669426e188e7c60901f1a2 to your computer and use it in GitHub Desktop.
Save crowcoder/2f7c180b78669426e188e7c60901f1a2 to your computer and use it in GitHub Desktop.
private static void OutputNoDefault(SqlCommand cmd)
{
cmd.CommandType = CommandType.StoredProcedure;
cmd.CommandText = "usp_Output_No_Default";
SqlParameter par = new SqlParameter("@param1", SqlDbType.VarChar);
par.Direction = ParameterDirection.Output;
par.Size = 50;
par.Value = null;
cmd.Parameters.Add(par);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment