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 MBAY dot NET>
Subject: RE: Setting hostname with Sybase::DBLib?
Date: Feb 4 1999 7:44PM

>>>>> "Robert" == Robert Lang  writes:

Robert> I thought of that, but then all of the different scripts would
Robert> all look the same in Sybase (Same User, Host and Program).
Robert> I'd like to preserve that info.

You could add a little something at the end of the appname
field. The application names defaults to the basename of the executing 
script (ie the value in $0). So you could do something like

$app = $0;
$app = substr($app, rindex($app, '/') + 1);

$app .= ' the special value';

$dbh = new Sybase::DBlib user, pwd, server, $app;

etc...

Michael


Robert> -----Original Message----- From: David C Worenklein
Robert> [mailto:dcw@GCM.COM] Sent: Thursday, February 04, 1999 8:47 AM
Robert> To: SybPerl Discussion List Subject: Re: Setting hostname with
Robert> Sybase::DBLib?

Robert> Instead of changing the host, why not change the application
Robert> name?  That's a parameter to dblogin (aka new).



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