[Solved] Update query not working in C#
[ad_1] Add .ExecuteNonQuery to execute the query, and add try-catch-block to catch any exception: try { … SqlCommand com = new SqlCommand(queryStr, conn); com.ExecuteNonQuery(); conn.Close(); … } catch (Exception ex) { MessageBox.Show(ex.ToString()); } [ad_2] solved Update query not working in C#