freelanceprogrammers.org Forum Index » Perl
DBI error
Joined: 28 Apr 2005
Posts: 1
DBI error
when i try to insert data in ms access
it show error in this line
$db = DBI->connect("dbi:ODBC:$DSN","Admin","read") ;
i have downloaded DBI and DBD:ODBC
This program is working other PCS
I have created DSN in system DSN also
HELP me
Joined: 06 Apr 2005
Posts: 12
DBI error
> when i try to insert data in ms access
> it show error in this line
> $db = DBI->connect("dbi:ODBC:$DSN","Admin","read") ;
Try putting the whole thing in a eval { } and print the error to identify
the PERL error.
eval {
$db = DBI->connect("dbi:ODBC:$DSN","Admin","read") ;
}; print "Perl error is " . $@;
If it`s a DBI error try
$db = DBI->connect("dbi:ODBC:$DSN","Admin","read") or print DBI->Errstr;
Just check up if Errstr is the error handler for the DBI
Take care
Paul Alapatt
> i have downloaded DBI and DBD:ODBC
> This program is working other PCS
> I have created DSN in system DSN also
> HELP me
All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help
China Wholesale - Electronics Products
Character Studio - Tutorials and Help







