Basically due to restriction on live server, I cannot use text file so I need to hard code the data in T-SQL code.
So first I created string from text file like this:
("001122;Sale Item 1", "001123;Sale Item 23", "001124;Sale Item 24", .... )
I have this table structure:
DECLARE @Product TABLE(ProductCode INT NOT NULL, Description nvarchar(100) NOT NULL)
First I need to store code and description in a table variable. Once that's done, then I can easily map it to the physical table and update the records.
How can I achieve this something similar to:
insert into @Product(ProductCode, Description)
values ("001122;Sale Item 1", "001123;Sale Item 23", "001124;Sale Item 24", .... )
Code Description
001122 Sale Item1
001123 Sale Item2
001124 Sale Item3