FIX: Export of Specific DBCS to Excel Fails When Text Type is Used (299299)



The information in this article applies to:

  • Microsoft SQL Server 2000 (all editions)

This article was previously published under Q299299
BUG #: 353637 (SHILOH_BUGS)

SYMPTOMS

If you use Data Transformation Services (DTS) and you try to export text data that contains "0x828c"(U+FF4C) of a double byte character (DBCS) of code page 932 (cp932) to Microsoft Excel, the export may fail. If the export fails, the following error message may occur:
Error during Transformation 'DirectCopyXform' for Row number 1, Errors encountered so far in this task: 1.
TransformCopy 'DirectCopyXfrom' conversion error: General conversion failure on column pair 1 (source column 'col1'(DBTYPE_STR), destination column 'col1'(DBTYPE_WSTR)).

RESOLUTION

To resolve this problem, obtain the latest service pack for Microsoft SQL Server 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

290211 INF: How to Obtain the Latest SQL Server 2000 Service Pack

Hotfix

NOTE: The following hotfix was created prior to Microsoft SQL Server 2000 Service Pack 2.

The English version of this fix should have the following file attributes or later:
   File name       Platform
   ------------------------
   s80400i.exe     Intel
NOTE: Due to file dependencies, the most recent hotfix or feature that contains the preceding files may also contain additional files.

WORKAROUND

To work around this problem either:
  • Export to a text file as .csv file.

    -or-

  • Use a ntext data type instead of a text data type.

STATUS

Microsoft has confirmed this to be a problem in SQL Server 2000. This problem was first corrected in Microsoft SQL Server 2000 Service Pack 2.

MORE INFORMATION

Steps to Reproduce Problem

  1. Execute the following query to create the tbl1 sample table:
       use Northwind
       go
       create table tbl1 (col1 text)
       go
       declare @code varchar(5)
       select @code=0x828c
       insert into tbl1 values( convert(text, @code))
       go
  2. Open the Data Transformation Services Export wizard.
  3. Click Next.
  4. Click the Northwind database, and then click Next.
  5. Select Microsoft Excel97-2000 as the Destination, type an appropriate Excel file name, and then click Next.
  6. Click Next.
  7. Select the tbl1 table, and then continue to click Next until the process completes.

Modification Type:MajorLast Reviewed:10/17/2003
Keywords:kbBug kbfix kbSQLServ2000preSP2Fix KB299299