ScriptingOptions.ScriptBatchTerminator ScriptingOptions.ScriptBatchTerminator ScriptingOptions.ScriptBatchTerminator Property


Gets or sets the ScriptBatchTerminator property value.

 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).


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  

Applies to