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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈