Microsoft KB Archive/299299

= FIX: Export of Specific DBCS to Excel Fails When Text Type is Used =

Article ID: 299299

Article Last Modified on 10/17/2003

-

APPLIES TO


 * Microsoft SQL Server 2000 Standard Edition

-



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 &quot;0x828c&quot;(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.



Steps to Reproduce Problem
  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  Open the Data Transformation Services Export wizard. Click Next. Click the Northwind database, and then click Next.</li> Select Microsoft Excel97-2000 as the Destination, type an appropriate Excel file name, and then click Next.</li> Click Next.</li> Select the tbl1 table, and then continue to click Next until the process completes.</li></ol>

Additional query words: dbcs U+FF4C 0x828c export excel text cp932

Keywords: kbbug kbfix kbsqlserv2000presp2fix KB299299

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.