Hi everyone.
I have a bunch of files with different columns in each file. I want to upload these files in a SQL database. I have created a macro wherein I can read each file and it even writes to the database I mention.
The problem I am facing now is that all the fields in all the files are being imported as a string, by default as it is from a flat file.
I want to dynamically change the data type of each field. I have another file mentioning the file (table name) along with the column (name) and the data type I want. Is there any way to automate this? The file looks like this -

The table name is the file name which will contain the given columns. And in the last column I have the data type in which I want the column to be imported.