in reply to Testing Script ODBC
It's really impossible to help without seeing the error, please post it here. You can edit your post and add it. Here are a few ideas:
It seems unlikely that you are really running Microsoft Access on linux. You're using 'mysql' as a password: is your database actually MySQL?
You're using the VARCHAR2 data type but that's an Oracle data type. I don't know for sure but I don't think you can use it in Access. It causes an error if you try to use it in MySQL.
You have one SQL string in a scalar and one in an array, that's probably not what you want.
For creating tables, once you have a working database handle, I suggest using DBI's do():
my $table1 = "CREATE TABLE table1 ( pike varchar2(200), CodigoEmp varchar2(200), NomEmp varchar2(200), Apellido varchar2(200), NombrePc varchar2(200), DireccionIp varchar2(15), email varchar2(200), posicion varchar2(200), recinto varchar2(200), logu varchar2(200), Logs varchar2(100) )"; $dbh->do( $table1 ) or die $dbh->errstr;
Hope this helps!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Testing Script ODBC
by chacham (Prior) on Nov 06, 2015 at 16:29 UTC | |
|
Re^2: Testing Script ODBC
by emorfa (Initiate) on Nov 06, 2015 at 12:27 UTC | |
by poj (Abbot) on Nov 06, 2015 at 13:29 UTC | |
by emorfa (Initiate) on Nov 06, 2015 at 14:03 UTC | |
by poj (Abbot) on Nov 06, 2015 at 14:20 UTC | |
by emorfa (Initiate) on Nov 06, 2015 at 15:17 UTC | |
by poj (Abbot) on Nov 06, 2015 at 16:41 UTC | |
by emorfa (Initiate) on Nov 06, 2015 at 14:47 UTC |