IF EXISTS(SELECT ID from Table where ID=@PK) BEGIN --Update Query UPDATE Table Set .... WHERE ID=@PK END ELSE ---Insert Query
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)