in reply to Re: Perl DBI Question
in thread Perl DBI Question
HTH.use DBI; use strict; use warnings; my $dbh; my $dsn = 'dbi:ODBC:web'; my $user = 'some'; my $pass = 'thing'; if ($dbi = DBI->connect($dsn, $user, $pass, {AutoCommit=>1})) { print "connected to database $_\n"; } else { print "did not connect to database\n"; print "try connecting to another database here??\n"; }
|
|---|