Can you use ADO instead of ODBC? (You'll need the DBD::ADO driver from package manager) The JET engine works most closely with DAO, but ADO is a close second, and you can actually get drivers for ADO. This requires that msjetoledb40.dll be in your system folder. (Has that changed to something other than windows/system32 on Vista? I've never upgraded from XP...)
My code to connect to an mdb file and dump all table info is:
Code:
use DBI;
use strict;
my($user, $pass) = ();
my $dbh = DBI->connect("dbi:ADO:Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:/foo/bar/database.mdb", $user, $pass, { RaiseError=>1, PrintError=>1 });
$dbh->table_info->dump_results(60); # Use 60 character lines instead of 35
$dbh->disconnect();
Also, what version of ActivePerl are you using, and what version of DBI?
Quote:
|
So u are wrong at $sth->execute!!!!!!!!!!!!!!
|
p3rl d0esnt need teh ()s aft3r teh m3th0d kall w no params! LOLOL!!!! p3rl w00d throw err0r @ c0mpi1e time 4 a synt4x err0r!!!!!1!11!! u r teh sux0rz n00b!!!!11!!!!!