Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 ODBC BCP with program variables

Author  Topic 

rmao
Starting Member

7 Posts

Posted - 2002-06-26 : 20:22:10
I am trying to use the SQL Server BCP interface to load a large amount of data from my application to a database.

My calls to bcp_init, and bcp_bind and bcp_sendrows all return without error. However, my call to bcp_done returns -1 indicating an error. SQLGetDiagRec only returns garbage strings for the state, and error message. Does anyone know how I can diagnose my problem?

   

- Advertisement -