in reply to Accessing database on the network.
This may help you see how a connection is made.
for example:
Your code should connect in a way similar to this. with your network path in the dbq= part. A common mistake is to not properly escape backslashes or dollar signs.#!/usr/bin/perl -w use DBI ; use strict; #connect to Access file via ODBC my $accessDSN = q(driver=Microsoft Access Driver (*.mdb);). q(dbq=\\\\NWKCPU\\c\$\\SubFolder\\Example.mdb); my $dbhA = DBI->connect("dbi:ODBC:$accessDSN",'','') or die "$DBI::err +str\n";
|
|---|