Condividi tramite


Proprietà ScriptingOptions.BatchSize

Gets or sets the number of statements after which to script batch terminator.

Spazio dei nomi  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
Public Property BatchSize As Integer 
    Get 
    Set
'Utilizzo
Dim instance As ScriptingOptions 
Dim value As Integer 

value = instance.BatchSize

instance.BatchSize = value
public int BatchSize { get; set; }
public:
property int BatchSize {
    int get ();
    void set (int value);
}
member BatchSize : int with get, set
function get BatchSize () : int 
function set BatchSize (value : int)

Valore proprietà

Tipo: System.Int32
A Int32 value that indicates the number of insert statements that are scripted before a batch terminator is inserted.

Osservazioni

The default for this property is 1.

Esempi

The following code example sets the scripts batch size to 10.

Visual Basic

Dim scOps As New ScriptingOptions()
scOps.BatchSize = 10

PowerShell

$scOps = New-Object Microsoft.SqlServer.Management.Smo.ScriptingOptions
$scOps.BatchSize = 10

Vedere anche

Riferimento

ScriptingOptions Classe

Spazio dei nomi Microsoft.SqlServer.Management.Smo

Altre risorse

Generazione di script