Freigeben über


Column.AddDefaultConstraint-Methode

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 As DefaultConstraint
'Usage
Dim instance As Column 
Dim returnValue As DefaultConstraint 

returnValue = instance.AddDefaultConstraint()
public DefaultConstraint AddDefaultConstraint()
public:
DefaultConstraint^ AddDefaultConstraint()
member AddDefaultConstraint : unit -> DefaultConstraint
public function AddDefaultConstraint() : DefaultConstraint

Rückgabewert

Typ: Microsoft.SqlServer.Management.Smo.DefaultConstraint
A DefaultConstraint object that specifies the default constraint bound to the column.

Beispiele

Arbeiten mit Datenbankobjekten

Siehe auch

Verweis

Column Klasse

AddDefaultConstraint-Überladung

Microsoft.SqlServer.Management.Smo-Namespace

Andere Ressourcen

ALTER TABLE (Transact-SQL)

CREATE TABLE (Transact-SQL)