Hello everybody,

I am trying a bulk copy process in SQL Server by Visual C++.

My problem is: How can i execute it when there is a field "datetime" in my table?

I have already done this:

bcp_bind( dbprocREC, (BYTE *) &(pCHL->ChlDatVencim), 0, -1, NULL, 0, SQLDATETIME , ++col )

that works, but calling bcp_sendrow , show the error:

"Attempt to convert data stopped by syntax error in source field."

Please, if somebody knows how to do this, tell me.


Gustavo Henrique Alves do Carmo.