Error Replicating Text or Image Data to SQL Server

When replicating text or image columns that contain null or zero-length data to SQL Server destination tables using BCP, which is the native-loader function for SQL Server, you may experience one of the following problems, depending on the SQL Server ODBC Driver version:

Bulk-copy commit failed (bcp_batch). ODBC message: SQLSTATE 37000, native error 4813, [Microsoft][ODBC SQL Server Driver][SQL Server]Expected the text length in data stream for bulk copy of text, ntext, or image data.

You can resolve this problem by using one of the following workarounds: