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


Метод DefaultRuleBase.BindToColumn (String, String, String)

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

Пространство имен:  Microsoft.SqlServer.Management.Smo
Сборка:  Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)

Синтаксис

'Декларация
Public Sub BindToColumn ( _
    tablename As String, _
    colname As String, _
    tableschema As String _
)
'Применение
Dim instance As DefaultRuleBase 
Dim tablename As String 
Dim colname As String 
Dim tableschema As String

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

Параметры

  • tablename
    Тип: System.String
    A String value that specifies the name of the table in which the column resides.
  • tableschema
    Тип: System.String
    A String value that specifies the name of the table schema.

Примеры

Создание, изменение и удаление используемых по умолчанию значений

Создание, изменение и удаление правил

См. также

Справочник

DefaultRuleBase Класс

Перегрузка BindToColumn

Пространство имен Microsoft.SqlServer.Management.Smo

Другие ресурсы

Работа с объектами базы данных

Правила

Умолчания

sp_bindrule (Transact-SQL)

sp_bindefault (Transact-SQL)