Gets or sets a Boolean property value that specifies whether to check the existence of an object before including it in the script.
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
The following code example specifies that the script will verify the existence of an object before including it in the script.
Dim scOps As New ScriptingOptions() scOps.IncludeHeaders = true
$scOps = New-Object Microsoft.SqlServer.Management.Smo.ScriptingOptions $scOps.IncludeHeaders = $TRUE