Partager via


Méthode DefaultRuleBase.BindToColumn (String, String, String)

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

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public Sub BindToColumn ( _
    tablename As String, _
    colname As String, _
    tableschema As String _
)
'Utilisation
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
)

Paramètres

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

Exemples

Création, modification et suppression des valeurs par défaut

Création, modification et suppression de règles

Voir aussi

Référence

DefaultRuleBase Classe

Surcharge BindToColumn

Espace de noms Microsoft.SqlServer.Management.Smo

Autres ressources

Utilisation des objets de base de données

Règles

Valeurs par défaut

sp_bindrule (Transact-SQL)

sp_bindefault (Transact-SQL)