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