Expand Minimize
0 out of 1 rated this helpful - Rate this topic

ScriptingOptions.ScriptBatchTerminator Property

Gets or sets the ScriptBatchTerminator property value.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
member ScriptBatchTerminator : bool with 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

PowerShell

$scOps = New-Object Microsoft.SqlServer.Management.Smo.ScriptingOptions
$scOps.ScriptBatchTerminator = $TRUE
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.