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: "Dan J Urist" <durist at evergreen-funds dot com>
Subject: Re: Client library problem?
Date: Feb 15 2000 7:17PM

Here's the script, pared down to the minimum that causes the error; it's pretty
generic. The same query works through isql. Do you have any suggestions on
further diagnostics?

-------------
#!/usr/bin/perl -w

use strict;
use DBI;

BEGIN {
     $ENV{SYBASE} = '/opt/sybase';
}

my $user = 'my_user';
my $passwd = 'my_passwd';
my $server = 'my_server';

my $dbh = DBI->connect("dbi:Sybase:server=$server", $user, $passwd) or die
"Could not connect to server\n";
my $sth = $dbh->prepare('select * from alarm') or die "Select failed\n";
$sth->dump_results;