freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
[freetds] passing a newline row terminator to freebcp
- From: "Lowden, James K" <LowdenJK AT bernstein.com>
- To: "'TDS Development Group'" <freetds AT lists.ibiblio.org>
- Subject: [freetds] passing a newline row terminator to freebcp
- Date: Fri, 7 Mar 2003 17:39:17 -0500
Maybe this is a freebcp question, maybe not.
Many of my bulk data files are delimited with one backslash between the
columns; rows are terminated with two characters: backslash+newline.
I eventually came up with a (shell-specific) way to pass the newline to
freebcp:
$ freebcp D..T in F -eT.err -c -t\\ -r\\$'\n' -S S -U U -P P
which is OK, if you like bash.
Does Sybase's bcp do this the same way, or does it recognize the
two-charcter string "\n" as a newline? And, what should we do?
In the so-called shell in NT, I pass "-t\\ -r\\\n". I think bcp.exe
interprets the meta characters. Don't know what the Right Thing is, here.
BTW freebcp doesn't return nonzero for many error conditions.
--jkl
The information contained in this transmission may contain privileged and
confidential information and is intended only for the use of the person(s)
named above. If you are not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, any
review, dissemination, distribution or duplication of this communication is
strictly prohibited. If you are not the intended recipient, please contact
the sender immediately by reply e-mail and destroy all copies of the
original message. Please note that we do not accept account orders and/or
instructions by e-mail, and therefore will not be responsible for carrying
out such orders and/or instructions.
-
[freetds] passing a newline row terminator to freebcp,
Lowden, James K, 03/07/2003
-
Re: [freetds] passing a newline row terminator to freebcp,
Michael Peppler, 03/11/2003
- Re: [freetds] passing a newline row terminator to freebcp, James K. Lowden, 03/11/2003
-
Re: [freetds] passing a newline row terminator to freebcp,
Michael Peppler, 03/11/2003
Archive powered by MHonArc 2.6.24.