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: Specification of Packet Size -Reply
Date: Jun 26 1998 8:43PM

Curtis Johnson writes:
 > Michael,
 > I am sorry I don't quite get the DBLib part --
 > 
 > how do I call DBSETLPACKET() ?  Do I call it after I connect
 > or before (I am connecting with "new Sybase::DBlib ...")  

You call DBSETLPACKET() before connecting. Note that the server
must be configured to accept larger packet sizes.

Michael

 > 
 > 
 > thanks
 > 
 > >>> Michael Peppler  06/26/98
 > 09:59am >>>
 > Curtis Johnson writes:
 >  > Hi All,
 >  > Is there a way to specify the sybase network packet size
 >  > before connecting with either CTlib or DBlib versions of
 >  > sybperl?
 > 
 > DBSETLPACKET() for DBlib.
 > 
 > For CTlib, you'd do:
 > 
 > $dbh = new Sybase::CTlib user, pwd, server, appname,
 > {CON_PROPS =>
 > {CS_PACKETSIZE => 1024}};
 > 
 > This requires a fairly recent version of sybperl.
 > 
 > Michael
 > -- 
 > Michael Peppler         -||-  Data Migrations Inc.
 > mpeppler@datamig.com    -||- 
 > http://www.mbay.net/~mpeppler
 > Int. Sybase User Group  -||-  http://www.isug.com
 > 
 > 

-- 
Michael Peppler         -||-  Data Migrations Inc.
mpeppler@datamig.com    -||-  http://www.mbay.net/~mpeppler
Int. Sybase User Group  -||-  http://www.isug.com