Article ID: 176479 - Last Review: March 14, 2006 - Revision: 5.0

FIX: Double-Byte Character Set Insertion May Fail with Error 2627

This article was previously published under Q176479
BUG #: 17436 (Windows: 6.50)
Expand all | Collapse all

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 6.5. This problem has been corrected in Service Pack 5a for Microsoft SQL Server 6.5.For more information, click the following article number to view the article in the Microsoft Knowledge Base:
197177  (http://support.microsoft.com/kb/197177/ ) INF: How to Obtain SQL Server 6.5 Service Pack 5a
For more information, contact your primary support provider.

APPLIES TO
  • Microsoft SQL Server 6.0 Standard Edition
  • Microsoft SQL Server 6.5 Standard Edition
Keywords: 
kbbug kbenv kbfix KB176479
Retired KB ArticleRetired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
 

Article Translations