FIX: NCHAR Columns Padded with Empty Strings Instead of Spaces During BCP/BULK INSERT

Article translations Article translations
Article ID: 265355 - View products that this article applies to.
This article was previously published under Q265355
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 57827 (SQLBUG_70)
Expand all | Collapse all

SYMPTOMS

Unicode character type nchar columns are padded with empty strings (ASCII value: 0) instead of space characters (ASCII value: 32) during bulk copy program (bcp) or BULK INSERT operations. With ANSI PADDING OFF, only columns that are created as char and later ALTERed to nchar exhibit this behavior. This problem does not occur if the data is inserted by using the INSERT statement or by using INSERT..SELECT or SELECT..INTO operations.

CAUSE

BULK INSERT and bcp operations behave differently when the column is created as nchar, as opposed to when it is created as char and later altered to nchar, based on the ANSI PADDING setting. This option should not affect the padding behavior on Unicode fixed length character data types.

STATUS

Microsoft has confirmed this to be a problem in SQL Server 7.0. This problem has been corrected in U.S. Service Pack 3 for Microsoft SQL Server 7.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
274799 INF: How to Obtain Service Pack 3 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0
For more information, contact your primary support provider.

Properties

Article ID: 265355 - Last Review: October 20, 2013 - Revision: 2.0
APPLIES TO
  • Microsoft SQL Server 7.0 Standard Edition
Keywords: 
kbnosurvey kbarchive kbbug kbfix kbqfe KB265355

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com