FIX: UNION in Views Maintains Duplicate Rows If Table Has BitLast reviewed: April 9, 1997Article ID: Q159701 |
The information in this article applies to:
SYMPTOMSRunning a SELECT from a view that is defined as a UNION of select statements does not eliminate duplicate rows, if the underlying table contains a field of the bit type. However, duplicate rows are eliminated if the UNION statement is not within a view.
WORKAROUNDIf the bit datatype must be used, place the UNION statement outside a view, or use the DISTINCT keyword when selecting from the view. Otherwise, use tinyint, smallint, or int datatypes rather than the bit type.
STATUSMicrosoft has confirmed this to be a problem in Microsoft SQL Server version 6.5. This problem has been corrected in U.S. Service Pack 2 for Microsoft SQL Server version 6.5. For more information, contact your primary support provider.
|
Additional query words:
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |