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.
Prochainement : Tout au long de l'année 2024, nous supprimerons progressivement les GitHub Issues en tant que mécanisme de retour d'information pour le contenu et nous les remplacerons par un nouveau système de retour d'information. Pour plus d’informations, voir:Soumettre et afficher des commentaires pour