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: Michael Peppler <mpeppler at peppler dot org>
Subject: Re: $ENV{SYBASE} variable
Date: Sep 7 1999 5:45PM

fence@bwn.net writes:
 > for DBD, you can specify the interfaces file when connecting by 
 > specifying the interfaces attribute:
 > 
 > $dbh = 
 > DBI->connect("dbi:Sybase:server=$myServer,interfaces=$altIntFile"
--------------------------------------------^
that should be a semi-colon, not a comma...

Michael

 > > fence@bwn.net writes:
 > >  > For DBD, try using:
 > >  >  
 > >  > dbsetifile("/home/mpeppler/interfaces");
 > > 
 > > Err... that's for Sybase::DBlib.
 > > 
 > > This person is using DBD::Sybase...
 > > 
 > >  > 
 > >  > 
 > >  > for CT-Lib:
 > >  > 
 > $ret=ct_config(CS_SET,CS_IFILE,"/home/mpeppler/foo",CS_CHAR_TYPE)
 > >  > ;
 > >  > print "$ret\n";
 > > 
 > > Yep - that's correct :-)
 > > 
 > > Michael
 > > 
 > > 
 > >  > > Hello,
 > >  > > 
 > >  > > I'm using DBI/DBD and the Sybase::CTlib modules.  The
 > >  > > problem is I would like to use a different interfaces file 
 > than 
 > >  > the
 > >  > > default one specified by the env var $ENV{SYBASE}.  Is 
 > there a 
 > >  > way to
 > >  > > connect to the database with a different interfaces file 
 > and 
 > >  > yet the
 > >  > > still use the existing ct libs in ~sybase?
 > >  > > 
 > >  > > thanks,
 > >  > > 
 > >  > > CLiff Nelsen
 > >  > > 
 > >  > 
 > > 
 > > -- 
 > > Michael Peppler         -||-  Data Migrations Inc.
 > > mpeppler@peppler.org    -||-   href="http://www.mbay.net/~mpeppler">http://www.mbay.net/~mpepple
 > r
 > > Int. Sybase User Group  -||-   href="http://www.isug.com">http://www.isug.com
 > > Sybase on Linux mailing list: ase-linux-list@isug.com
 > > 
 > 

-- 
Michael Peppler         -||-  Data Migrations Inc.
mpeppler@peppler.org    -||-  http://www.mbay.net/~mpeppler
Int. Sybase User Group  -||-  http://www.isug.com
Sybase on Linux mailing list: ase-linux-list@isug.com