ICommandExecuter.ProcessBatch(String, Int32) Method

Definition

Processes the batch when a batch delimiter is encountered.

public:
 ManagedBatchParser::ParserAction ProcessBatch(System::String ^ str, int num);
public ManagedBatchParser.ParserAction ProcessBatch (string str, int num);
abstract member ProcessBatch : string * int -> ManagedBatchParser.ParserAction
Public Function ProcessBatch (str As String, num As Integer) As ParserAction

Parameters

str
String

Contains the Transact-SQL statements that are included in the batch.

num
Int32

The number of times that the batch must be executed. For example, if there are five GO statements, num is 5.

Returns

The parser action, either Abort or Continue.

Applies to