Export (0) Print
Expand All

Column.AddDefaultConstraint Method (String)

Adds a default constraint to the column.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public DefaultConstraint AddDefaultConstraint(
	string name


Type: String
A String value that specifies the default constraint to add to the column.

Return Value

Type: Microsoft.SqlServer.Management.Smo.DefaultConstraint
A DefaultConstraint object that specifies the default constraint added to the column.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft