I am using MSSQL2005(SP 3). I am trying to call a bcp_init() function for one of the table on my database machine, but it fails. I don't know how to retrieve the error no or error message. I have set SQL_COPT_SS_BCP to SQL_BCP_ON for the Database Handle, but still bcp_bind() fails. Any idea, where I am going wrong or how should I get the error no or error message?