Hi,
I have writen a VB app (uses ADO 2.6) that connects to various databases and spreadsheets and creates tables within them. It currently works with Access, Excel and SQL Server but I also need to connect to dBase, Paradox, Lotus123, Oracle and text files.
Depending on the database/spreadsheet, the DATATYPE in the SQL statement 'CREATE TABLE Table1 (FieldA DATATYPE, etc.' needs to vary. Is there a table somewhere of datatype equivalents between the databases (especially dBase, Paradox, Oracle)?
Also, with text files, am I right in thinking that the 'CREATE TABLE' SQL statement can't be used? Do I need to use 'ALTER TABLE' to achieve the same thing?
Thanks for your help.
Andy7777
I have writen a VB app (uses ADO 2.6) that connects to various databases and spreadsheets and creates tables within them. It currently works with Access, Excel and SQL Server but I also need to connect to dBase, Paradox, Lotus123, Oracle and text files.
Depending on the database/spreadsheet, the DATATYPE in the SQL statement 'CREATE TABLE Table1 (FieldA DATATYPE, etc.' needs to vary. Is there a table somewhere of datatype equivalents between the databases (especially dBase, Paradox, Oracle)?
Also, with text files, am I right in thinking that the 'CREATE TABLE' SQL statement can't be used? Do I need to use 'ALTER TABLE' to achieve the same thing?
Thanks for your help.
Andy7777