StatementEventArgs.SqlStatement Property

Gets the Transact-SQL statement that caused the statement event.

Namespace:  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)

Syntax

'Declaration
Public ReadOnly Property SqlStatement As String 
    Get
'Usage
Dim instance As StatementEventArgs 
Dim value As String 

value = instance.SqlStatement
public string SqlStatement { get; }
public:
property String^ SqlStatement {
    String^ get ();
}
member SqlStatement : string
function get SqlStatement () : String

Property Value

Type: String
A String value that specifies the Transact-SQL statement that caused the statement event.

See Also

Reference

StatementEventArgs Class

Microsoft.SqlServer.Management.Common Namespace