ICommandExecuter.Exit(String, String) Method

Definition

Executes the last batch and parameter, and then exits.

public:
 ManagedBatchParser::ParserAction Exit(System::String ^ batch, System::String ^ exitBatch);
public ManagedBatchParser.ParserAction Exit (string batch, string exitBatch);
abstract member Exit : string * string -> ManagedBatchParser.ParserAction
Public Function Exit (batch As String, exitBatch As String) As ParserAction

Parameters

batch
String

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

exitBatch
String

The batch that is specified with the :Exit sqlcmd command as a parameter.

Returns

The parser action, either Abort or Continue.

Applies to