Hector.Albertos has asked for the wisdom of the Perl Monks concerning the following question:
I have used the below code to connect to the SQL database :
my $dbh = DBI->connect($DBSERVER, $DBUSERID, $DBPASSWD) or die "Can't connect to $DBSERVER: $DBI::errstr";
The $ DBSERVER parameter should contain the value “dbi::driver_name”. The driver_name specifies the driver that is used to make the connection
I tried to pull the installed drivers using the below command “@ary = DBI->available_drivers; “ and the value returned is “DBMExamplePFileGoferProxySponge$”.
When tried to run the datasource with the ‘DBMExamplePFileGoferProxySponge’ driver the connection failed with the message “install_driver(DBMExamplePFileGoferProxySponge$) failed:”
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Add database connectivity with Perl
by hangon (Deacon) on May 20, 2009 at 22:59 UTC | |
|
Re: Add database connectivity with Perl
by DStaal (Chaplain) on May 20, 2009 at 20:36 UTC | |
by Jenda (Abbot) on May 20, 2009 at 21:47 UTC |