Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Adds a default constraint to the column.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Function AddDefaultConstraint ( _
name As String _
) As DefaultConstraint
'Usage
Dim instance As Column
Dim name As String
Dim returnValue As DefaultConstraint
returnValue = instance.AddDefaultConstraint(name)
public DefaultConstraint AddDefaultConstraint(
string name
)
public:
DefaultConstraint^ AddDefaultConstraint(
String^ name
)
member AddDefaultConstraint :
name:string -> DefaultConstraint
public function AddDefaultConstraint(
name : String
) : DefaultConstraint
Parameter
- name
Typ: System.String
A String value that specifies the default constraint to add to the column.
Rückgabewert
Typ: Microsoft.SqlServer.Management.Smo.DefaultConstraint
A DefaultConstraint object that specifies the default constraint added to the column.
Beispiele
Arbeiten mit Datenbankobjekten
Siehe auch
Verweis
AddDefaultConstraint-Überladung
Microsoft.SqlServer.Management.Smo-Namespace