freebcp
bulk loading utility for Sybase and Microsoft databases
- Provided by: freetds-bin (Version: 1.5.2+ds-1)
- Source: freetds
- Report a bug
bulk loading utility for Sybase and Microsoft databases
freebcp |
[[⟨database⟩.]⟨owner⟩.]⟨object_name⟩
{in |
[query]out}
datafile {-c |
-n | -f
formatfile} [-S
servername] [-D
dbname] [-U
username] [-P
password] [-b
batchsize] [-F
firstrow] [-L
lastrow] [-e
errfile] [-I
interfaces] [-m
maxerror] [-t
field_term] [-r
row_term] [-h
hints] [-T
textsize] [-A
packet_size] [-O
options] [-i
inputfile] [-o
outputfile] [-C
charset] [-EdVv] |
freebcp is a utility program distributed
with FreeTDS. freebcp replicates (in part at least)
the functionality of the bcp utility programs distributed by Sybase and
Microsoft. freebcp makes use of the DB-Library bcp
API provided by FreeTDS. This API is also available to application
developers.
The manual pages or online help for Sybase or SQL Server can be referenced for more detailed information on bcp functionality.
freebcp will execute the
query and write the results to a file. (It is a good idea to have the
query return one and only one result set.)-A
packet_size-D
dbnamefreebcp
to issue a USE dbname
command immediately after logging in, before commencing BCP
operations.-E-F
firstrow-I
interfaces-L
lastrow-O
options-O `SET QUOTED_IDENTIFIER ON'.-P
password-S
servername-T
textsize-U
username-b
batchsize-c-d-e
errfile-f
formatfile-h
hintsbcp_options()
in the FreeTDS Reference Manual.-m
maxerror-nfreebcp will be able to process, but is not
portable or readable.-r
row_term-c, above.-t
field_term-c, above.-v-V-i
inputfile-o
outputfile-C
charsetDSQUERY default
servername
When connecting to a Sybase database server, it is required that the TDS 5.0 protocol be used. When connecting to a Microsoft SQL Server 2000 database server, the TDS 7 (or later) protocol is required.
Sybase and Microsoft define different versions of the bcp portion
of TDS 4.2. Because FreeTDS has no way of knowing which type of server it's
connected to, freebcp does not support version 4.2
of the TDS protocol.
freebcp first appeared in FreeTDS 0.60
The freebcp utility was written by
Bill Thompson
⟨thompbil@exchange.uk.ml.com⟩
Currently, there is no support for text data types in
freebcp, when SQL Server 2000 is the target
server.