Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 01 Aug 2008 @ 16:52:14 GMT


     
  <Prev Next>  
<<First
<Prev
Next> Last>>  


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?



     
  <Prev Next>  
<<First
<Prev
Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023