public static int updateByProcedure(string procedureName, SqlParameter[] parameter) { SqlConnection conn = new SqlConnection(connString); SqlCommand cmd = new SqlCommand(); try { conn.Open(); cmd.CommandType = CommandType.StoredProcedure;// cmd.CommandText = procedureName;// cmd.Parameters.Add(parameter);// int result = cmd.ExecuteNonQuery(); return result; } catch (Exception ex) { throw ex; } finally { conn.Close(); }