Getting error description when using bcp ODBC API

  • Hello!
     
        I was not sure which category this posting belongs to. My apologies if it has been posted in the wrong place.
        Our code written in C++  using bulk copy functions with ODBC driver. It is based on SQL Server bcp sample located under C:\Program Files\Microsoft SQL Server\80\Tools\DevTools\Samples\odbc\bcp.
        Periodically we are getting different type of errors (Network, Database,etc.  related). The error reported by our program is not descriptive at all. It simply says there was an error. I was wondering if there is a way to capture more detailed information as to what exaclty has happened. If there are any code samples of how to do this in C++, it would be greately appreciated.
     
    Thanks,
    Igor

Viewing post 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply