共用方式為


BindToColumn Method

未來的 Microsoft SQL Server 版本將移除這項功能。請避免在新的開發工作中使用這項功能,並規劃修改目前使用這項功能的應用程式。

The BindToColumn method enables a Microsoft SQL Server default or rule on the column specified.

Applies To:

語法

object
.BindToColumn(
Table
,
Column
)

Parts

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

  • Table
    String specifying an existing table by name.

  • Column
    String specifying an existing column in the specified table.

Prototype (C/C++)

HRESULT BindToColumn(
SQLDMO_LPCSTR TableName,
SQLDMO_LPCSTR ColumnName);