Guest_imported
New member
- Jan 1, 1970
- 0
I'm trying to import an access file via a form on a web page, and then copy all of the records in the file to a SQL 7 table.
I know i have to follow three steps:
1. CFFILE puts the access file in the server dir.
2. Create an ODBC connection to it with CF dynamically.
3. Run a query against it CFOUTPUT loop through the query.
For each record in the query, insert a record into the SQL database. Remove the ODBC connection and the file. (depending on whether or not they will be needed later)
The only thing I don't know is the possibility to create the ODBC connection from CF dynamically.(the second step)
I appreciate any ideas on how to do this?
I know i have to follow three steps:
1. CFFILE puts the access file in the server dir.
2. Create an ODBC connection to it with CF dynamically.
3. Run a query against it CFOUTPUT loop through the query.
For each record in the query, insert a record into the SQL database. Remove the ODBC connection and the file. (depending on whether or not they will be needed later)
The only thing I don't know is the possibility to create the ODBC connection from CF dynamically.(the second step)
I appreciate any ideas on how to do this?