ScriptingOptions.OptimizerData Property

Gets or sets the Boolean property value that specifies whether script optimizer data for the referenced objects are included in the generated script.

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

public bool OptimizerData { get; set; }

Property Value

Type: System.Boolean
A Boolean value that specifies whether script optimizer data for the referenced objects are included in the generated script.
If True, whether script optimizer data for the referenced objects is included in the generated script. Otherwise, False (default).

This option allows a copy of a database to be created. This enables queries to be tuned on a separate system.

Community Additions

ADD
Show: