FIX: Logreader fails to select text data that is inserted by SQL Server 6.5 Bcp utility

This article was previously published under Q294420
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 236456 (SHILOH_bugs)
If you use the Microsoft SQL Server 6.5 Bcp.exe utility to insert records into a table in SQL Server 2000 that has at least one nullable CHAR(n) column (where n>1) before a TEXT column, the logreader may fail to read it and the following error message occurs:
The process could not execute 'sp_replcmds' on 'xxxx'Status: 0, code: 18773, text: 'Could not locate text information records for column 3 during command construction.'.
To resolve this problem, obtain the latest service pack for SQL Server 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
290211 How to obtain the latest SQL Server 2000 service pack
Microsoft has confirmed that this is a problem in SQL Server 2000. This problem was first corrected in SQL Server 2000 Service Pack 1.

Steps to Reproduce Behavior

  1. Run the following code to create a table:
    create table ttext(indexcol int primary key,charcol char(5) NULL,textcol text)
  2. Publish the table you created in step 1, and then push the table to a subscriber (transactional).
  3. Use SQL Server 6.5 Bcp.exe to insert a record with a parameter -c (textcol uses a non-null value).
  4. Run logreader and the error shown in the "Symptoms" section occurs.
replication replicate

Article ID: 294420 - Last Review: 01/16/2015 22:10:20 - Revision: 4.3

Microsoft SQL Server 2000 Standard Edition, Microsoft SQL Server 6.5 Standard Edition

  • kbnosurvey kbarchive kbbug kbfix kbsqlserv2000sp1fix KB294420