Discussion:
[freetds] problem with bcp hints in 0.91
Constantin Vasilyev
2012-06-08 13:03:33 UTC
Permalink
Dear FreeTDS developers,

It appears like '-h' option in freebcp doesn't work well. If used, freebcp generates error like:

Msg 20076, Level 7
bcp_init must be called before any other bcp routines

I was able to fix that by calling bcp_options(dbproc, BCPHINTS ...) right after bcp_init, but may be there's more elegant way of doing that.


Also, it seems like FIRE_TRIGGERS is missing from the list of allowed hints in bcp.c
And, while we're looking at this, may be it doesn't make sense to check validity of passed hints on client side at all.
Shouldn't dblib accept whatever hints given to it and leave checking to the server?

Just a thought :)


Constantin

Loading...