sandeep kumar

sandeep kumar

  • NA
  • 58
  • 12k

Sql Command Error with where condition

Jun 19 2018 4:13 PM
I tried using the below sqlcommand statement throwing error at where condition. What's wrong with the statement. Can any one help me please.
 
SqlCommand sqlcmd = new SqlCommand("insert into Database1(ProdcutReleaseDate) values('"+DateTime.Now+"') where [property address]='" + ComboBox1.SelectedValue+"'", sqlcon);
 
 
Thanks
sandeep 

Answers (4)