Michael Peppler
Sybase Consulting
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
Sybase on Linux FAQ
Sybperl FAQ
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: Terrence Brannon <schemelab at gmail dot com>
Subject: Sybase::Simple - use database should be an option to the constructor?
Date: Oct 20 2009 5:52PM

According to Mike, choosing a database is a separate step in
Sybase::Simple (which BTW is a godsend module).

However, I see no reason why it couldnt be an additional argument to new:

my $syb = Sybase::Simple->new($user, $password, undef, $database);

And certainly the DBI has the database_name as an argument to it's $dbh factory

Of course I could just subclass Sybase::Simple with a module that took
the additional argument and then made the call. But I honestly think
that most people would prefer that the standard Sybase::Simple offer

On Tue, Oct 20, 2009 at 1:22 PM, Michael Peppler  wrote:
> With Sybase::Simple you'd do something like
> $dbh->ExecSql("use $db");

> On Oct 20, 2009, at 5:53 PM, Terrence Brannon wrote:
>> Hi, it appears that Sybase::Simple does not have support for
>> connecting to a particular database after connecting to the server?