[freetds] Getting a DBPROCESS instance from an SQLHDBC
Frederick N. Brier
multideck at comcast.net
Sun Mar 20 17:14:30 EST 2005
The project I am working on is using unixODBC and FreeTDS on Gentoo to
talk to a MS SQL database. Under Windows, I wrote some code to do bulk
inserts using the bcp_* routines, but when moved over and compiled under
Unix, it failed because FreeTDS is expecting a DBPROCESS * instead of a
SQLHDBC. I have searched through the FreeTDS source and mailing lists
(back to 2002) and have not seen anything. Is there a function that
does this and I am just missing it?
Looking at the code, it should be possible to construct a DBPROCESS
instance. It is not clear whether the connection semantics are
compatible and whether it will screw up my unixODBC connection pool.
Both the ODBC functions and the db*/bcp* routines use the TDS*
structures. It seems like it might be a bit of work writing it and then
testing it, so if anyone has already done this - please - help! Thank
you much.
Frederick N. Brier
Multideck Corporation
More information about the FreeTDS
mailing list