string sqlstr=string.Format("insert into ocs_outages(tt_id,out_date,description) values('{0}','{1}','{2}') where 'tt_id' not in (select tt_id from ocs_outages)",dr[1], Convert.ToDateTime(dr[3]).ToString("yyyy-MM-dd HH:mm:ss"), dr[2]);
the bug is "Incorrect syntax near the keyword 'where'." what is this wrong in here? how to work it?
and the I need to tell user update finish or fail to update . what should I do ? thanks to spend to read it. Forgive my poor English.