NoCommandTerminator プロパティ
生成されるスクリプト内で、個々の Transact-SQL ステートメントを区切るかどうかを示す Boolean プロパティ値を取得します。値の設定も可能です。
名前空間: Microsoft.SqlServer.Management.Smo
アセンブリ: Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)
構文
'宣言
Public Property NoCommandTerminator As Boolean
Get
Set
'使用
Dim instance As ScriptingOptions
Dim value As Boolean
value = instance.NoCommandTerminator
instance.NoCommandTerminator = value
public bool NoCommandTerminator { get; set; }
public:
property bool NoCommandTerminator {
bool get ();
void set (bool value);
}
member NoCommandTerminator : bool with get, set
function get NoCommandTerminator () : boolean
function set NoCommandTerminator (value : boolean)
プロパティ値
型: System. . :: . .Boolean
生成されるスクリプト内で個々の Transact-SQL ステートメントを区切るかどうかを示す Boolean 値です。
True の場合、生成されるスクリプト内で個々の Transact-SQL ステートメントは区切られません。
False (既定値) の場合、個々の Transact-SQL ステートメントは、接続固有のコマンド ターミネータを使用して区切られます。
使用例
次のコード例では、個々の Transact-SQL ステートメントを区切らないように指定します。
Visual Basic
Dim scOps As New ScriptingOptions()
scOps.IncludeHeaders = true
PowerShell
$scOps = New-Object Microsoft.SqlServer.Management.Smo.ScriptingOptions
$scOps.IncludeHeaders = $TRUE