I am reading table name and attribute values from text file. I do not have column names but only table name and values in the list.
I would like to insert the values into SQL Server table. How do I map list to destination table schema. The order of column values match with table structure.
Following is the example of text file row.
I~6000000~PDEN ~A058951~PI~PI~DEHYDRATOR~~261384~~~B&C; COMPRESSOR STATION~802103~~~~~~~~~~~~A~~A~USA~17~027~~61~022033~~~~~~20171001~~~~~~~~N~~~~CONGRESS_PRD~~3~~~~~~~~~~~~~~~~G~LA~~L~~~~~~~~~~~~~~~~~~~~
'I' is the transaction type.
6000000 is table id
PDEN is the table name.
Rest of them are Attribute Values.
Text file can contain values for multiple tables and it can have update or deletes also.
For now I am trying to find a solution for inserts.
Please let me know your thoughts.