ExecuteNonQuery requires the command to have a transaction error in my code
You need to change this line SqlCommand cmd = new SqlCommand(“update Contact_Info set CustInfo=” + ds.GetXml() + ” WHERE Customer_ID=” + a + “”, scon); in this way SqlCommand cmd = new SqlCommand(“update Contact_Info set CustInfo=” + ds.GetXml() + ” WHERE Customer_ID=” + a + “”, scon, sqlTrans); The error message states exactly the problem. … Read more