views:

11

answers:

0

Hello,

I have a system installation consisting of two servers, an application server and a database server.

I need to bulk upload csv files generated at the application CSV files from the application t the database server, so I am simply the bcp.exe application.

The database server is SQL server 2000 enterprise edition, the application sever has sql sever express 2005 ( for native client ) and I took the bcp tool from an SQL server 2005 installation and moved it to the application server.

Whenever I try to call the bcp from the command line it returns

"SQLState = HY000, NativeError = 0 Error = [Microsoft][SQL Native Client]Connection is not enabled for BCP" when I searched for this error I, technet I found the following:

The application using the BCP API must set the SQLSetConnectAttr or SQL_SS_COPT_BCP attribute before connecting.

The thing is I am not writing and code or calling any API, I am just using bcp.exe frmo command line.

does any one have an idea about this ?