freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "Thompson, Bill D (London)" <ThompBil AT exchange.uk.ml.com>
- To: "'FreeTDS Development Group'" <freetds AT lists.ibiblio.org>
- Subject: RE: [freetds] bcp, for browse and flags
- Date: Tue, 29 Apr 2003 16:47:02 +0100
Hmmm...
As things stand TDS4.2 is not supported for bcp functionality, so it may not
be an issue. You have to talk either TDS 5 or TDS 7+
This is because we use the TDS protocol version to determine the type of
server we are talking to, and do (radically) different things accordingly.
Unfortunately, the TDS4.2 protocol for BCP does not appear to be the same
across Sybase and SQL server.
Because it is such a low-level (binary) interface, it runs into endian
issues, and there are other subtle differences which I never got to the
bottom of, despite a LOT of trying...
Bill
> -----Original Message-----
> From: ZIGLIO Frediano [SMTP:Frediano.Ziglio AT vodafoneomnitel.it]
> Sent: 29 April 2003 16:34
> To: FreeTDS Development Group
> Subject: RE: [freetds] bcp, for browse and flags
>
> >
> > Hi,
> >
> > Do we hreally have an issue, or have I misunderstood...?
> >
> > in tds_get_data_info (TDS 5) we have :
> >
> > curcol->column_identity = (curcol->column_flags & 0x40) > 1;
> >
> > in tds7_get_data_info (TDS 7) we have :
> >
> > curcol->column_identity = (curcol->column_flags & 0x10) > 0;
> >
> > so we can get this already from the dummy select issued in
> > bcp_init()....
> >
> > Bill
> >
>
> Yes, but for tds4.2 the best way is do a "select * from table_name for
> browse" FOR BROWSE garant that key/id informations are returned from your
> select in all tds versions.
>
> freddy77
> _______________________________________________
> FreeTDS mailing list
> FreeTDS AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds
-
[freetds] bcp, for browse and flags,
ZIGLIO Frediano, 04/29/2003
- <Possible follow-up(s)>
- RE: [freetds] bcp, for browse and flags, Lowden, James K, 04/29/2003
- RE: [freetds] bcp, for browse and flags, Thompson, Bill D (London), 04/29/2003
- RE: [freetds] bcp, for browse and flags, ZIGLIO Frediano, 04/29/2003
- RE: [freetds] bcp, for browse and flags, Thompson, Bill D (London), 04/29/2003
Archive powered by MHonArc 2.6.24.