I have control files that we use to upload data onto Oracle 9i server. I need to rewrite these control files to T-SQL (we will be migrating to a SQL-Server). I've searched the web but haven't found any articles on creating control files in T-SQL.
I've seen many articles on BULK INSERT but it does not apply to my situation. The control files that we have do not include all the fields that the table has; also, the flat file containing the data to be loaded does not have the fields in the corresponding order as of table.
Can anyone point me in the right direction on writing a script file that will allow me to load the data in a specific order that is not based on the tables' field order?