Поделиться через


ListBoundColumns Method

В будущей версии Microsoft SQL Server эта возможность будет удалена. Избегайте использования этой возможности в новых разработках и запланируйте изменение существующих приложений, в которых она применяется.

The ListBoundColumns method returns a SQLObjectList object that enumerates the columns to which a rule, or default, is bound or the columns defined on the user-defined data type.

Синтаксис

object
.ListBoundColumns(
)
as
SQLObjectList

Parts

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

Prototype (C/C++)

HRESULT ListBoundColumns(
LPSQLDMOCOLUMNLIST* ppList);

Returns

A SQLObjectList object that contains 0 or more Column objects.

Замечания

A SQL Server default rule, or user-defined data type, cannot be dropped when bound to or used by any other SQL Server object.

For the Default or Rule object you can use the ListBoundColumns method to enumerate columns bound, and then use the Name property of Column objects returned and the UnbindFromColumn method of the object to remove bindings.

A SQL Server default or rule can be bound to a user-defined data type. Use the ListBoundDatatypes and UnbindFromDatatype methods to remove bindings on a user-defined data type.

Use the Datatype property, and optionally the Length property, of the Column object to redefine a column on a new data type.

Applies To:

Default Object

UserDefinedDatatype Object

Rule Object

 

См. также

Справочник

Column Object

Справка и поддержка

Получение помощи по SQL Server 2005