BUG: Double-Byte Character Set Insertion May Fail w/ Error 2627

Last reviewed: November 10, 1997
Article ID: Q176479
The information in this article applies to:
  • Microsoft SQL Server, versions 6.0 and 6.5
BUG #: 17436 (Windows: 6.50)

SYMPTOMS

A double-byte character set (DBCS) insertion may fail with error 2627 when SQL Server is configured with the code page 850 Multilingual character set and sort order 42 (dictionary order, case-insensitive sort order). The following scripts demonstrate this problem:

   CREATE TABLE t
   (
    aChar VARCHAR (2) PRIMARY KEY CLUSTERED,
    code BINARY(2)
   )
   GO

   SET NOCOUNT ON
   DECLARE @code BINARY(2)
   DECLARE @aChar VARCHAR(2)
   SELECT @code = 0x88a4
   WHILE @code < 0x88a6
   BEGIN
     SELECT @code
     SELECT @aChar = convert(VARCHAR(2), @code)
     SELECT @aChar
     INSERT t (aChar, code) VALUES (@aChar, @code)
     SELECT @code = @code + 1
   END

WORKAROUND

To work around this problem, use another code page.

STATUS

Microsoft has confirmed this to be a problem in SQL Server versions 6.0 and 6.5. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


Additional query words: JIS Wansung Johab Hangul KB BIG-5
Keywords : kbbug6.00 kbbug6.50 SSrvGen SSrvTran_SQL kbenv
Version : WINNT:6.0 6.5
Platform : winnt
Issue type : kbbug
Solution Type : kbworkaround


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 10, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.