|
|
Archives of the TeradataForum
Message Posted: Fri, 01 Aug 2008 @ 16:52:14 GMT
Subj: | | Teradata Perl Connection Question |
|
From: | | Tengli, Girish |
I'm trying to connect to Teradata and getting the following error.
CODE:
my $dbh;
my $sth;
my @row;
$dbh = DBI->connect('dbi:Teradata:DB', 'user', 'password') or die
"Connecting : $DBI::errstr\n ";
$sth = $dbh->prepare('select * from TableX) or die "preparing: ",$dbh-
> >errstr;
$sth->execute() or die "executing: ", $dbh->errstr;
while (@row = $sth->fetchrow_array()) {
print "displaying";
print join(',',@row);
print "\n";
}
--Note DB, user, password have been supplied.
ERROR:
Cannot init, result is 510
Use of uninitialized value in concatenation (.) or string
at /...../......../DBD/Teradata.pm line 5078
Also does DBD:Teradata module supports encrypted logons?
| |