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: Sybase::BCP
Date: Jun 13 2001 8:16PM

Kilzer, Greg writes:
 > Hello,
 > 
 > I'd like to use the BCP out routine in Sybperl. The documentation that I
 > have
 > read says that BCP out is not yet implemented. Is this still current? Has 
 > it been implemented yet?

No, and it's unlikely that it will be.

BCP out is really just a select, with the data formatted in a specific
way.

You can achieve the same results with something like this:

$" = "\t";
$dbh->ct_sql("select * from the_table", 0, sub { print "@_\n"; });

(although this prints to stdout, instead of a file, but you get the
idea...) 

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