Bulk copy (C API) and ODBC driver for SQL Server

bcp c++ odbc sqlbulkcopy

Question

In a C++ application, I'm attempting to utilize the ODBC bulk copy API with SQL Server (bcp init, bcp bind, bcp sendrow, etc.).

What is the most recent driver that I should link against, exactly?

I've tried linking against odbcbcp.lib and the "SQL Server" driver. The driver is pretty outdated and seems to have several faults, however it nearly works.

Although I tried switching to "ODBC Driver 13 for SQL Server," the bulk copy operations are inoperative. I believe the reason is that I'm not connecting against the correct dll. Does anybody know against what I should link?

1
1
9/6/2016 2:35:41 PM

Popular Answer

located it. The SDK may be installed at the same time as the driver. It may be found in the following directory: C: Program FilesMicrosoft SQL ServerClient SDKODBCXX-version-XX.

0
9/7/2016 11:44:03 AM


Related Questions





Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow