if exists (select * from table_name where key = @key) begin update table set ... where key = @key end else begin insert table (key, ...) values (@key, ...) end
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)