Assume a table structure of MyTable(KEY, datafield1, datafield2...).
MyTable(KEY, datafield1, datafield2...)
Often I want to either update an existing record, or insert a new record if it does
In SQL Server 2008 you can use the MERGE statement