共用方式為


ListBoundDatatypes Method

未來的 Microsoft SQL Server 發行版本將不再提供此功能。請避免在新的開發工作中使用此功能,並計劃修改目前使用此功能的應用程式。

The ListBoundDatatypes method returns a SQLObjectList object that enumerates the user-defined data types to which a rule, or default, is bound.

語法

object
.ListBoundDatatypes(
)
as
SQLObjectList

Parts

  • object
    Expression that evaluates to an object in the Applies To list.

Prototype (C/C++)

HRESULT ListBoundDatatypes(
LPSQLDMOUSERDEFINEDDATATYPELIST* ppList);

Returns

A SQLObjectList object that contains 0 or more UserDefinedDatatype objects.

備註

A SQL Server default or rule cannot be dropped when bound to a SQL Server object.

For the Default or Rule object, you can use the ListBoundDatatypes method to enumerate user-defined data type bound, and then use the Name property of UserDefinedDatatype objects returned and the UnbindFromDatatype method of the object to remove bindings.

A SQL Server default or rule can be bound to a column. Use the ListBoundColumns and UnbindFromColumn method to remove bindings on a column.

Applies To:

Default Object

Rule Object

請參閱

參考

UserDefinedDatatype Object

說明及資訊

取得 SQL Server 2005 協助