[freetds] 0.82 freebcp: -h option seems to be broken

Constantin Vasilyev vasilyev at ncbi.nlm.nih.gov
Fri Dec 19 13:53:41 EST 2008


Hi,

One of our users ran into this problem recently:

> freebcp tempdb.dbo.foo in /tmp/foo.bcp -S MSSQLSRV -c -h CHECK_CONSTRAINTS -U xxx -P yyy
Msg 20076, Level 7
bcp_init must be called before any other bcp routines

db-lib: Unable to set hint "CHECK_CONSTRAINTS"


I looked into the code and it appears like freebcp is trying to call bcp_options before bcp_init.


While being there, I also checked bcp_options function and found that list of valid
bcp hints is incomplete (FIRE_TRIGGERS hint is missing).

Could someone take a look into that.

Thanks!

Constantin
NCBI contractor, DBA


More information about the FreeTDS mailing list