DefaultRuleBase.BindToColumn 方法 (String, String)

Binds the default or rule to the specified column in the specified table.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Sub BindToColumn ( _
    tablename As String, _
    colname As String _
)
用法
Dim instance As DefaultRuleBase 
Dim tablename As String 
Dim colname As String

instance.BindToColumn(tablename, colname)
public void BindToColumn(
    string tablename,
    string colname
)
public:
void BindToColumn(
    String^ tablename, 
    String^ colname
)
member BindToColumn : 
        tablename:string * 
        colname:string -> unit
public function BindToColumn(
    tablename : String, 
    colname : String
)

参数

  • tablename
    类型:System.String
    A String value that specifies the name of the table in which the column resides.

示例

创建、更改和删除默认值

创建、更改和删除规则

请参阅

参考

DefaultRuleBase 类

BindToColumn 重载

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

使用数据库对象

规则

默认值

sp_bindrule (Transact-SQL)

sp_bindefault (Transact-SQL)