CREATE PROCEDURE uspINSERTUPDATEEMP Emp. ID AS INT, Last. Name AS NVARCHAR2. First. Name AS NVARCHAR2. Surf Anonymous 2 2 7 6 Portable Sign. ASBEGIN IF EXISTS SELECT Employee. ID FROM Employees WHERE Employee. ID Emp. ID BEGIN Write your update query UPDATE Employees SET First. I want to check table PREMIUMSERVICEUSER if any records exists for strClientID update timeValid for 30 if no records for strClientID insert to premiumserviceuser. Here Mudassar Ahmed Khan has explained how to perform Bulk Insert records and Update existing rows if record exists using C and VB. Net. SqlBulkCopy as the name. UPDATE is a DML statement that modifies rows in a table. Singletable syntax UPDATE LOWPRIORITY IGNORE tablereference SET assignmentlist WHERE where. Dont know why anyone else hasnt said this yet NORMALISE. Youve got a table that models competitions Competitions are made up of CompetitorsName First. Name, Last. Name Last. Name WHERE Employee. ID Emp. ID END ELSE BEGIN Write your insert query INSERT INTO Employees Employee. ID, First. Name, Last. Name VALUES Emp. ID, First. Name, Last. Name ENDENDSelect all. Open in new window.