Export (0) Print
Expand All
Expand Minimize
0 out of 2 rated this helpful - Rate this topic

ScriptingOptions.NoCommandTerminator Property

Gets or sets the Boolean property value that specifies whether individual Transact-SQL statements are delimited in the generated script.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
public bool NoCommandTerminator { get; set; }

Property Value

Type: System.Boolean
A Boolean value that specifies whether individual Transact-SQL statements are delimited in the generated script.
If True, individual Transact-SQL statements are not delimited in the generated script.
If False (default), individual Transact-SQL statements are delimited by using the connection-specific command terminator.

The following code example specifies that individual Transact-SQL statements will not be delimited.

Visual Basic

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

PowerShell

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

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.