freelanceprogrammers.org Forum Index » Perl

DBI error


View user's profile Post To page top
berkit_berkit Posted: Thu Apr 28, 2005 9:05 pm


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
Reply with quote
Send private message
View user's profile Post To page top
paulalapatt Posted: Thu Apr 28, 2005 10:40 pm


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
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

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
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help