DefaultConstraint.Text DefaultConstraint.Text DefaultConstraint.Text Property

Definition

Gets or sets the Transact-SQL statement that defines the default constraint.

public:
 property System::String ^ Text { System::String ^ get(); void set(System::String ^ value); };
[Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcProperty(Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Expensive | Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Standalone | Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.SqlAzureDatabase | Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Design)]
public string Text { get; set; }
Public Property Text As String
Property Value

A String value that specifies the actual text of the Transact-SQL statement that defines the default constraint.

Examples

Setting Properties

Remarks

The Text property of the DefaultConstraint object is equivalent to the Transact-SQL constant expression clause in the default constraint definition, which specifies the actual text of the Transact-SQL definition statement.

Applies to