Trying to Delete row from sql database. Quotation mark is the problem
I tried to add perfect quotation in following query but it is not accepting it.
con.Open();
SqlCommand fac = new SqlCommand("delete from faculty where schoolName = '" + schlName , con);
fac.ExecuteNonQuery();
con.Close();
Please check and reply with the solution.
I tried to add perfect quotation in following query but it is not accepting it.
You need to use parameters: