SET IDENTITY_INSERT [dbo].[store] ON; Select * from store where store_id = 321; if @@ROWCOUNT =0 BEGIN INSERT INTO store ( Store_ID, Description, CompanyName, TradingAs, Address, ContactNo, VATRegNo, RegNo, StoreEmailAddress ) VALUES ('321', 'Cash Crusaders Butterworth','Cash Crusaders Stores (Pty) Ltd','Cash Crusaders Butterworth','Shop 01B & C, Fingoland Mall, Cnr N2 & Road, Butterworth','0877111599','4270290184','2020/027120/07',''); END ELSE BEGIN UPDATE Store set Description = 'Cash Crusaders Butterworth',CompanyName = 'Cash Crusaders Stores (Pty) Ltd', TradingAs = 'Cash Crusaders Butterworth', Address='Shop 01B & C, Fingoland Mall, Cnr N2 & Road, Butterworth', ContactNo = '0877111599', VATRegNo = '4270290184',RegNo = '2020/027120/07', StoreEmailAddress = '' where Store_ID = 321; END SET IDENTITY_INSERT [dbo].[store] off