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



The information in this article applies to:

  • Microsoft SQL Server 2000 (all editions)
  • Microsoft SQL Server 6.5

This article was previously published under Q294420
BUG #: 236456 (SHILOH_bugs)

SYMPTOMS

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.'.

RESOLUTION

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

STATUS

Microsoft has confirmed that this is a problem in SQL Server 2000. This problem was first corrected in SQL Server 2000 Service Pack 1.

MORE INFORMATION

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.

Modification Type:MajorLast Reviewed:12/17/2004
Keywords:kbBug kbfix kbSQLServ2000sp1fix KB294420 kbAudDeveloper