freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "R. Klemme" <bob.news AT gmx.net>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Cc: jklowden AT schemamania.org
- Subject: Re: [freetds] Re: Freetds freebcp
- Date: Tue, 15 Jun 2004 17:10:32 +0200 (MEST)
Hi James et al,
> Now here are my findings: if I have a table with a PK and add an index
> with
> the same conditions as the PK but with option "IGNORE_DUP_KEY" set, the
> error message changes and duplicates are simply dropped (tested with MS's
> bcp) but the other rows are inserted ok. Of course it's quite useless to
> have the same index twice, but the same happens if you drop the PK.
>
> So in any case, this is the Oracle like behavior, which really helps us.
> We
> didn't find this because we looked only at bcp options. :-) Now I just
> have
> to check whether we have to face any any disadvantages when we exchange
> the
> PK for a normal index.
Ok, here's another interesting / strange thing: if you use option -b
batch_size with the original bcp, the complete batch does not insert *any*
data if there is at least a single PK violation. If you omit this option,
only duplicate rows are ignored. Note also, that usage of option -m
max_errors does not have any impact on this. This is really wired...
Kind regards
robert
--
+++ Jetzt WLAN-Router für alle DSL-Einsteiger und Wechsler +++
GMX DSL-Powertarife zudem 3 Monate gratis* http://www.gmx.net/dsl
-
[freetds] Re: Freetds freebcp,
R. Klemme, 06/10/2004
- <Possible follow-up(s)>
-
RE: [freetds] Re: Freetds freebcp,
Lowden, James K, 06/10/2004
-
RE: [freetds] Re: Freetds freebcp,
R. Klemme, 06/11/2004
-
Re: [freetds] Re: Freetds freebcp,
James K. Lowden, 06/11/2004
-
Re: [freetds] Re: Freetds freebcp,
R. Klemme, 06/14/2004
- Re: [freetds] Re: Freetds freebcp, James K. Lowden, 06/14/2004
-
Re: [freetds] Re: Freetds freebcp,
R. Klemme, 06/14/2004
- Re: [freetds] Re: Freetds freebcp, R. Klemme, 06/15/2004
-
Re: [freetds] Re: Freetds freebcp,
R. Klemme, 06/14/2004
-
Re: [freetds] Re: Freetds freebcp,
James K. Lowden, 06/11/2004
-
RE: [freetds] Re: Freetds freebcp,
R. Klemme, 06/11/2004
Archive powered by MHonArc 2.6.24.