bcp_init with DB_OUT
"James K. Lowden" <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <[email protected]> |
According to the vendors' documentation, bcp_init() should initialize hostfile column format information for each table column. It was not doing so when extracting, leaving the hostfile column count at zero. That forced the user to call bcp_columns() and bcp_colfmt() or -- if you're like me -- get an empty output file. This is fixed in CVS HEAD. If you're a C++ fan, you may wish to try out samples/bcp_test.cpp. --jkl