Was this page helpful?
Additional feedback?
1500 characters remaining
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: System.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.

Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft