|
|
|
Windows database via ADO with predefined DSN 'products' |
|
|
$dbh = DBI->connect("dbi:ADO:products", $user, $passwd); |
|
|
Same again but via ODBC |
|
|
$dbh = DBI->connect("dbi:ODBC:products", $user, $passwd); |
|
|
MS Access file without predefined DSN |
|
|
$file = 'C:/databases/products.mdb';
$driver = "driver={Microsoft Access Driver (*.mdb)};DBQ=$file";
$dbh = DBI->connect("dbi:ODBC:$driver"); |
|
|
|
|