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: How to get text file from a bcp out.
Date: Jun 29 1999 8:44PM

Tezgiden, Tekin writes:
 > 		Hi,&
 > 
 > 		I try to run following code to bcp out some data. However
 > the data in the file like a binary. &
 > 		My first question is how can I bcpout the data in text
 > format and "|" delimited? &
 > 		My second question is, the output of following code contains
 > error. How can I avoid such errors? &

I would use Sybase's bcp command, like this:

bcp myTable out myfile -U username -P password -c -t'|'

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