ScriptingOptions.EnforceScriptingOptions Property

Gets or sets the Boolean property value that specifies whether the application of all scripting options is enforced for text-based objects, such as SchemaQualify.

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

public bool EnforceScriptingOptions { get; set; }

Property Value

Type: System.Boolean
A Boolean value that specifies whether the application of all scripting options is enforced for text-based objects.
If True, the application of all scripting options is enforced for text-based objects.
If False (default), object text is scripted without any modification.

Text-based objects will lose any comments and formatting, because the object will be constructed based on metadata.

Community Additions

ADD
Show: