Skip to content

Instantly share code, notes, and snippets.

@crowcoder
Created October 15, 2016 14:47
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/24d45a9ec687f3a41a76af1b59d7453a to your computer and use it in GitHub Desktop.
Save crowcoder/24d45a9ec687f3a41a76af1b59d7453a to your computer and use it in GitHub Desktop.
private static void InputWithNoDefault_NullValue(SqlCommand cmd)
{
cmd.CommandType = CommandType.StoredProcedure;
cmd.CommandText = "usp_Input_No_Default";
SqlParameter par = new SqlParameter("@param1", SqlDbType.VarChar);
par.Direction = ParameterDirection.Input;
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