[freetds] bcp, for browse and flags

ZIGLIO Frediano Frediano.Ziglio at vodafoneomnitel.it
Tue Apr 29 11:33:41 EDT 2003


> 
> 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



More information about the FreeTDS mailing list