BUG: Sort on GUID Columns Works Differently on DataSet and SqlServer (326603)
The information in this article applies to:
- Microsoft Visual C# .NET (2002)
This article was previously published under Q326603 SYMPTOMS When you use the SqlTypes.SqlGuid.CompareTo() method to compare different SqlGuids, you may receive incorrect
comparison results. This inconsistent behavior does not occur when you use the CompareTo() method of the System.Guid class. CAUSE The System.Guid class and SqlTypes.SqlGuid class implement the CompareTo() method differently. SqlGuid implements the CompareTo() method according to the behavior in SQL server (only the last 6
bytes are considered), however, Guid considers all 16 bytes. STATUSMicrosoft has confirmed that this is a bug in the Microsoft
products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 12/13/2002 |
---|
Keywords: | kbbug KB326603 |
---|
|