Skip to Content.
Sympa Menu

freetds - [freetds] Getting a DBPROCESS instance from an SQLHDBC

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Frederick N. Brier" <multideck AT comcast.net>
  • To: freetds AT lists.ibiblio.org
  • Subject: [freetds] Getting a DBPROCESS instance from an SQLHDBC
  • Date: Sun, 20 Mar 2005 17:14:30 -0500

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





Archive powered by MHonArc 2.6.24.

Top of Page