PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: "Wechsler, Steven" <Steven dot Wechsler at mtvstaff dot com>
Subject: $DBI::errstr never holds any value
Date: Apr 6 2005 7:36PM

Behold the following code snippet:

        $dbh = DBI->connect("dbi:Sybase:server=$server", $login,
$srvpassword,
                            {PrintError => 0});
        if (! $dbh) {
            print "Can't connect to $server: $DBI::errstr\n";
            $error = 1;
            next server;
        }

I never get a value from $DBI::errstr (in the case that I'm trying, the
reason is a wrong password). What am I doing wrong?

Thanks,

Steve