MoFiddy has asked for the wisdom of the Perl Monks concerning the following question:
Thanks for your help.use strict; use File::Basename; use Cwd; use Date::Calc qw(Today Now); use Sys::Hostname; use DBI; use DBD::ODBC::Teradata; eval { my $tddsn = "odbc_entry"; my $tduser = "username"; my $tdpass = "password"; $ENV{'ODBCINI'} = '/path/to/.odbc.ini'; my $tddbh = DBI->connect("DBI:ODBC:DSN=$tddsn", $tduser, $tdpass, +{PrintError => 0, RaiseError => 0 }) or die $DBI::errstr; } unless ($@);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Error connecting to Teradata via ODBC
by Generoso (Prior) on Dec 02, 2010 at 16:35 UTC | |
by MoFiddy (Sexton) on Dec 02, 2010 at 18:04 UTC | |
by MoFiddy (Sexton) on Dec 07, 2010 at 18:47 UTC | |
|
Re: Error connecting to Teradata via ODBC
by mje (Curate) on Dec 02, 2010 at 17:26 UTC | |
by MoFiddy (Sexton) on Dec 02, 2010 at 19:04 UTC |