bcp_init throw exception
- From: Hooyoo <zhaohuyong@xxxxxxxxx>
- Date: Wed, 08 Aug 2007 01:31:38 -0700
Hi, everyone.
When I call bcp_init to initializes the bulk copy operation, I got an
exception that says "access violation reading location 0x00000009".
The DB connection is ok and bulk copy has been ennabled. My dev tool
is VS2005 and MS SQL Server 2005. Could you tell me the reason?
The coding looks like:
// Initialize bcp.
if (bcp_init(hdbc_, _bstr_t(tableName), NULL, NULL, DB_IN) == FAIL) //
Exception occurs??????????
{
return false;
}
Any suggestion are appreciated!
.
- Prev by Date: Re: How to get ODBC the status of connection?
- Next by Date: Lage objects and SQLPutData ?
- Previous by thread: How to get ODBC the status of connection?
- Next by thread: Lage objects and SQLPutData ?
- Index(es):
Relevant Pages
|