IDatabaseOptions.IsParameterizationForced Property

 

Applies To: SQL Server 2016 Preview

Gets or sets a Boolean property value that specifies whether parameterization is forced on the database.

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

Syntax

[DisplayDescriptionKeyAttribute("Database_IsParameterizationForcedDesc")]
[DisplayNameKeyAttribute("Database_IsParameterizationForcedName")]
bool IsParameterizationForced { get; set; }
[DisplayDescriptionKeyAttribute("Database_IsParameterizationForcedDesc")]
[DisplayNameKeyAttribute("Database_IsParameterizationForcedName")]
property bool IsParameterizationForced {
    bool get();
    void set(bool value);
}
[<DisplayDescriptionKeyAttribute("Database_IsParameterizationForcedDesc")>]
[<DisplayNameKeyAttribute("Database_IsParameterizationForcedName")>]
abstract IsParameterizationForced : bool with get, set
<DisplayDescriptionKeyAttribute("Database_IsParameterizationForcedDesc")>
<DisplayNameKeyAttribute("Database_IsParameterizationForcedName")>
Property IsParameterizationForced As Boolean

Property Value

Type: System.Boolean

A Boolean value that specifies whether parameterization is forced on the database.

If True, parameterization is forced.

If False (default), parameterization is not forced.

Remarks

When the IsParameterizationForced property is True, any literal value that appears that appears in a SELECT, INSERT, UPDATE, or DELETE statement is converted to a parameter during query compilation.

Examples

Legacy Code Example

Unable to find linked topic '5e17dc6d-a1d2-4400-9d2a-5a98720200cb'.

See Also

IDatabaseOptions Interface
Microsoft.SqlServer.Management.Smo Namespace

Setting Properties

Unable to find linked topic '3a25208a-8d0c-4689-8af2-a681a0a7737b'.Unable to find linked topic '068282b7-c419-4e2c-990a-1f8b7c12762f'.

Return to top