I would like to read data from a text file and insert the text into a database.
I created a text file from an Excel spreadsheet and saved it as a comma delimited text file (.csv).
I tried using the cffile tag along with a cfloop, but the cffile tag just does not seem to work with this kind of procedure. It does not appear as if the tag can distinguish if there are columns and rows, or assign variables to each individual column. I just want to be able to have the construct, loop through the text file 1 row at a time and insert each column value into it’s respective column in a SQL database table.
Does anyone know how to do this?
Thanks in Advance!!!
I created a text file from an Excel spreadsheet and saved it as a comma delimited text file (.csv).
I tried using the cffile tag along with a cfloop, but the cffile tag just does not seem to work with this kind of procedure. It does not appear as if the tag can distinguish if there are columns and rows, or assign variables to each individual column. I just want to be able to have the construct, loop through the text file 1 row at a time and insert each column value into it’s respective column in a SQL database table.
Does anyone know how to do this?
Thanks in Advance!!!