INF: Table with Sql_variant Column Returns Rows That Match INT, MONEY, DECIMAL Data Types When INT Specified in WHERE Clause (270052)
The information in this article applies to:
- Microsoft SQL Server 2000 (all editions)
This article was previously published under Q270052 SUMMARY
A table that has a column with sql_variant data type can store data of different types in the same column. If both of the following conditions are true:
- The values stored in the sql_variant column are of type int, money, and decimal.
-and- - The table is queried comparing one of these three data types to an int in a WHERE clause.
Then all rows consisting of int, money, and decimal data types are returned.
Modification Type: | Major | Last Reviewed: | 10/3/2003 |
---|
Keywords: | kbinfo KB270052 |
---|
|