Execute Method (SmiConnection, Int64, CommandBehavior, SmiExecuteType)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Send the request to the server and return the associated event stream. The assembly that contains this class has a friend relationship with SQLAccess.dll.  It is intended for use by SQL Server.  For other databases, use the hosting mechanism provided by that database.

Namespace: Microsoft.SqlServer.Server

Assembly: System.Data (in System.Data.dll)

MustOverride Function Execute(ByVal connection As SmiConnection, ByVal transactionId As Long, ByVal behavior As CommandBehavior, ByVal executeType As SmiExecuteType) As SmiEventStream
internal abstract SmiEventStream Execute (SmiConnection connection, long transactionId, CommandBehavior behavior, SmiExecuteType executeType);

Parameters

Parameter

Description

connection

The connection to be used to execute the query on.

transactionId

The Id for the transaction that will be used.

behavior

One of the valid CommandBehavior values.

executeType

One of the valid SmiExecuteType values.

Return Value

An SmiEventStream object.

Version Information

.NET Framework

Supported in: 2.0