SET IDENTITY_INSERT [dbo].[store] ON; Select * from store where store_id = 322; if @@ROWCOUNT =0 BEGIN INSERT INTO store ( Store_ID, Description, CompanyName, TradingAs, Address, ContactNo, VATRegNo, RegNo, StoreEmailAddress ) VALUES ('322', 'Cash Crusaders Riverstone Mall','Cash Crusaders Stores (Pty) Ltd','Cash Crusaders Riverstone Mall','Shop 32A, Riverstone Mall, Meyerton, Gauteng, 1961','0877111599','4270290184',' 2020/027120/07','riverstonemgr@crusadersstores.co.za'); END ELSE BEGIN UPDATE Store set Description = 'Cash Crusaders Riverstone Mall',CompanyName = 'Cash Crusaders Stores (Pty) Ltd', TradingAs = 'Cash Crusaders Riverstone Mall', Address='Shop 32A, Riverstone Mall, Meyerton, Gauteng, 1961', ContactNo = '0877111599', VATRegNo = '4270290184',RegNo = '2020/027120/07', StoreEmailAddress = 'riverstonemgr@crusadersstores.co.za' where Store_ID = 322; END SET IDENTITY_INSERT [dbo].[store] off