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: DBlib bcp in/out sample
Date: Aug 25 1999 2:15PM

Charles Zhao writes:
 > I would not suggest using DBLib bcp calls if your data is huge.  If you are  
 > handling large data set, using direct sybase bcp calls is more efficient.  An  
 > example (bcp in) is:
 > 
 > $bcpCommand = "$ENV{SYBASE}/bin/bcp $db..$Table in $inFile -f $fmtFile -U  
 > $user -P $psw -S $DBSERVER -b $batchSize -m $maxNumOfErrors -e $errFile";
 > @output = `$bcpCommand`;
 > 
 > REF:  Sybase utilities manual.
 > 
 > Points to Know:
 > 1.  Failover roll back;
 > 2.  If you have bcp v.11, go back use v10. as v11 has a bug.

Depends which version of bcp v11. The one that shipped with 11.5 on
Solaris had a bug, but if you have a more recent version then you're
probably fine.

Michael
-- 
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