ScriptingOptions.ScriptBatchTerminator ScriptingOptions.ScriptBatchTerminator ScriptingOptions.ScriptBatchTerminator Property

Definition

Gets or sets the ScriptBatchTerminator property value.

public:
 property bool ScriptBatchTerminator { bool get(); void set(bool value); };
public bool ScriptBatchTerminator { get; set; }
Public Property ScriptBatchTerminator As Boolean
Property Value

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

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

Examples

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  

Applies to