UserDefinedFunction.IsDeterministic UserDefinedFunction.IsDeterministic UserDefinedFunction.IsDeterministic Property

Definition

Gets or sets the Boolean property value that specifies whether the user-defined function is deterministic.

public:
 property bool IsDeterministic { bool get(); };
[Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcProperty(Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Standalone | Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.SqlAzureDatabase)]
public bool IsDeterministic { get; }
Public ReadOnly Property IsDeterministic As Boolean
Property Value

A Boolean value that specifies the whether the user-defined function is deterministic or not.

If True, the user-defined function is deterministic.

If False (default), the user-defined function is not deterministic.

Examples

Setting Properties

Remarks

A computed column can be used as a key column in an index or as part of any primary key or unique constraint, if the computed column value is defined by a deterministic expression and the data type of the result is allowed in indexed columns.

An application can use this property to determine if a computed column that depends on a user-defined function can be used in an index.

Applies to