Méthode DefaultRuleBase.BindToColumn (String, String)

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

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 _
)
'Utilisation
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
)

Paramètres

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

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)