Skip to Content.
Sympa Menu

freetds - [freetds] problem with bcp hints in 0.91

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Constantin Vasilyev <vasilyev AT ncbi.nlm.nih.gov>
  • To: <freetds AT lists.ibiblio.org>
  • Subject: [freetds] problem with bcp hints in 0.91
  • Date: Fri, 8 Jun 2012 09:03:33 -0400

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




  • [freetds] problem with bcp hints in 0.91, Constantin Vasilyev, 06/08/2012

Archive powered by MHonArc 2.6.24.

Top of Page