SET IDENTITY_INSERT [dbo].[store] ON; Select * from store where store_id = 319; if @@ROWCOUNT =0 BEGIN INSERT INTO store ( Store_ID, Description, CompanyName, TradingAs, Address, ContactNo, VATRegNo, RegNo, StoreEmailAddress ) VALUES ('319', 'Cash Crusaders Reservoir Hills','Cash Crusaders Stores (Pty) Ltd','Cash Crusaders Reservoir Hills','Shop F9, Reservoir Hills Mall, 365 New Germany Road, Reservoir Hills, Durban','','4270290184','2020/027120/07',''); END ELSE BEGIN UPDATE Store set Description = 'Cash Crusaders Reservoir Hills',CompanyName = 'Cash Crusaders Stores (Pty) Ltd', TradingAs = 'Cash Crusaders Reservoir Hills', Address='Shop F9, Reservoir Hills Mall, 365 New Germany Road, Reservoir Hills, Durban', ContactNo = '', VATRegNo = '4270290184',RegNo = '2020/027120/07', StoreEmailAddress = '' where Store_ID = 319; END SET IDENTITY_INSERT [dbo].[store] off