HasSQLVariantColumn Property
未來的 Microsoft SQL Server 版本將移除這項功能。請避免在新的開發工作中使用這項功能,並規劃修改目前使用這項功能的應用程式。
The HasSQLVariantColumn property returns TRUE if the referenced table has a sql_variant column.
語法
object
.HasSQLVariantColumn
Parts
- object
An expression that evaluates to an object in the Applies To list
Data Type
Boolean
Modifiable
Read-only
Prototype (C/C++)
HRESULT GetHasSQLVariantColumn(LPBOOL pRetVal);
備註
An application can call the HasSQLVariantColumn property to determine whether a table contains a sql_variant column. This action can be useful when preparing to replicate to a heterogeneous Subscriber, because not all heterogeneous databases support the sql_variant data type.
[!附註]
If an application calls HasSQLVariantColumn on an instance of Microsoft SQL Server version 7.0, FALSE is returned.