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: "Ellery, Michael BGI SF" <Michael dot Ellery at barclaysglobal dot com>
Subject: RE: "use" Sybase command with CTlib
Date: May 7 1999 7:44PM

>From the docs, ct_sql():

This routine is very usefull to send SQL commands to the server that do not
return rows, such as: 

         $dbh->ct_sql("use BugTrack");


Michael Ellery
Barclays Global Investors
45 Fremont St., 6th Floor #102
San Francisco, CA  94105
(415) 908-7234 [PH],  (415) 597-2352 [FAX]

> -----Original Message-----
> From:	Nguyen-Anh D. Le []
> Sent:	Friday, May 07, 1999 12:10 PM
> To:	SybPerl Discussion List
> Subject:	"use" Sybase command with CTlib
> Hello,
> I am new to using Sybase::CTlib and am looking for some help.  
> When you log in to Sybase normally (say through isql), you can typ:
>   use 
> to switch between databases on the same server.  I need to do this
> because my app shares the same login ID as some other apps that already
> exist.  Using Sybperl's DBlib, you can have:
>   $dbh->dbuse($dbname);
> Is there a way to do this in CTlib?  I wish I could use DBlib (since my
> code already works for it), but my client's DBAs are not supporting DBlib.
> Thanks in advance!
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Nguyen-Anh D. Le
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=