SessionInformation.SqlStatementsExecuted() Method
Version: Available or changed with runtime version 4.0.
Gets the amount of SQL statements executed on the session, since the session started.
Syntax
SqlStatementsExecuted := SessionInformation.SqlStatementsExecuted()
Note
This method can be invoked using property access syntax.
Return Value
SqlStatementsExecuted
Type: BigInteger
The amount of SQL statements executed on the session, since the session started.
Remarks
AL debugger also lets you to monitor the number of SQL statements executed. For more information, see Debugging SQL behavior.
Example
The following code gets the number of SQL statements executed and displays the number in a message.
var
SqlStatementsExecuted : BigInteger;
begin
SqlStatementsExecuted := SessionInformation.SqlStatementsExecuted();
Message(Format(SqlStatementsExecuted));
end;
See Also
SessionInformation Data Type
Get Started with AL
Developing Extensions
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour