Was this page helpful?
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

ScriptingOptions.ScriptBatchTerminator Property


Gets or sets the ScriptBatchTerminator property value.

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

public bool ScriptBatchTerminator { get; set; }

Property Value

Type: System.Boolean

A Boolean that indicates whether a batch terminator is scripted or not.

If True, the batch terminator is scripted. Otherwise, False (default).

The following code example specifies that the batch terminator will be scripted.

Visual Basic

Dim scOps As New ScriptingOptions()
scOps.ScriptBatchTerminator = true


$scOps = New-Object Microsoft.SqlServer.Management.Smo.ScriptingOptions
$scOps.ScriptBatchTerminator = $TRUE
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft