ICommandExecuter Interface

Definition

Defines methods that are used to execute commands in the parser.

public interface class ICommandExecuter
public interface ICommandExecuter
type ICommandExecuter = interface
Public Interface ICommandExecuter
Derived

Methods

Connect(Int32, String, String, String)

Connects to an instance of SQL Server.

Ed(String, IBatchSource)

Edits the last and current batch, and then reparses.

Error(OutputDestination, String)

Defines the output on error.

ExecuteShellCommand(String)

Executes a shell command.

Exit(String, String)

Executes the last batch and parameter, and then exits.

Help()

Displays the Help.

IncludeFileName(String, IBatchSource)

Parses the given file, as if the file is part of the current file.

List(String)

Lists the batch.

ListVar(String)

Returns the list of variables.

OnError(ErrorAction)

Defines the action to take on error.

Out(OutputDestination, String)

Defines the command output.

PerfTrace(OutputDestination, String)

Defines the performance trace output.

ProcessBatch(String, Int32)

Processes the batch when a batch delimiter is encountered.

Quit()

Stops executing the batch, and then exits.

Reset()

Clears the Transact-SQL batch.

ServerList()

Returns a list of the servers that are available through the provider.

Xml(XmlStatus)

Switches XML mode to on or off.

Applies to