Freigeben über


SqlStatement-Eigenschaft

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

Eigenschaftenwert

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