I have a table that has four columns. The first column sKey is the promary key.I have an C# application in which generate DataRows. I want to insert rows to the table. The question is that the rows may be existing. In this case, just update the records. If not insert rows then.Here is the unfinished code and also there is error.Thanks.Insert into MetTable(skey,col1,col2,col3) Values(@skey,@col1,@col2,@col3) WHERE NOT EXISTS (Select * from MetTable)