Asp.net – "Incorrect syntax near ')'." from cmd.ExecuteNonQuery();
After updating from System.Data.SqlClient to Microsoft.Data.SqlClient in my ASP.NET webforms app, I encountered a problem when trying to run cmd.ExecuteNonQuery(); in this code: protected void Button1_Click(object sender, EventArgs e) { con.Open(); SqlCommand cmd = new SqlCommand("INSERT INTO [dbo].[table]rn ([column])rnrn VALUESrn…