I have the following code to execute a stored procedure. I receive no errors when debugging but it does not update my database. Note this stored procedure does run fine within sql so the problem is in the code below: (Thanks)
private void approveestBN_Click(object sender, EventArgs e
{
int @estno;
int.TryParse(startestnoCB.Text,out estno);
SqlCommand cmd = new SqlCommand();
cmd.CommandText = "EstimateApproval";
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add("@estno", SqlDbType.Int);
}
private void approveestBN_Click(object sender, EventArgs e
{
int @estno;
int.TryParse(startestnoCB.Text,out estno);
SqlCommand cmd = new SqlCommand();
cmd.CommandText = "EstimateApproval";
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add("@estno", SqlDbType.Int);
}