dotConnect for SQL Server Documentation
Devart.Data.SqlServer Namespace / SqlScript Class / SqlStatementExecute Event

In This Topic
    SqlStatementExecute Event
    In This Topic
    Occurs when a SQL statement within the script is about to execute.
    Syntax
    'Declaration
     
    Public Event SqlStatementExecute As SqlStatementExecuteEventHandler
    public event SqlStatementExecuteEventHandler SqlStatementExecute
    Event Data

    The event handler receives an argument of type SqlStatementExecuteEventArgs containing data related to this event. The following SqlStatementExecuteEventArgs properties provide information specific to this event.

    PropertyDescription
    Gets length of the statement in symbols. (Inherited from Devart.Common.DbStatementExecuteEventArgs)
    Gets number of line in the whole script where the statement can be located. (Inherited from Devart.Common.DbStatementExecuteEventArgs)
    Gets position of the statement in its line. (Inherited from Devart.Common.DbStatementExecuteEventArgs)
    Gets offset of the statement in the whole script text. (Inherited from Devart.Common.DbStatementExecuteEventArgs)
    Gets or sets an SqlDataReader that represents statement resultset.  
    Determines status of the statement and script execution. (Inherited from Devart.Common.DbStatementExecuteEventArgs)
    Gets type of the statement. (Inherited from Devart.Common.DbStatementExecuteEventArgs)
    Gets the SQL statement that is about to be executed. (Inherited from Devart.Common.DbStatementExecuteEventArgs)
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also