DBD-ODBC
view release on metacpan or search on metacpan
file name of the Access database.
=back
=head2 How do I connect without DSN
The ability to connect without a full DSN was introduced in version 0.21.
Example (using MS Access):
my $DSN = 'driver=Microsoft Access Driver(*.mdb);dbq=\\\\cheese\\g$\\perltest.mdb';
my $dbh = DBI->connect("dbi:ODBC:$DSN", '','') or die "$DBI::errstr\n";
The above sample uses Microsoft's UNC naming convention to point to
the MSAccess file (\\cheese\g$\perltest.mdb). The dbq parameter tells
the access driver which file to use for the database.
Example (using MSSQL Server):
my $DSN = 'driver={SQL Server};Server=server_name;database=database_name;uid=user;pwd=password;';
my $dbh = DBI->connect("dbi:ODBC:$DSN") or die "$DBI::errstr\n";
=head2 Why do I get data truncated error from SQL Server when inserting with parameters?
Please see "Why am I getting errors with bound parameters" below which
( run in 0.421 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )