It may be useful for debugging or informational purposes to show what SQL is being used for report executions, as they are run. This can be done automatically with a server event.
Note. This event halts report execution. This is for demonstrative purposes only.
Global Event: OnExecuteSQLStatementConstructed
throw new WrUserMessage(args.ToString(),WrUserMessageType.Text);