I want to track statements into SQL Server cursor using extended events but all solutions finding in internet does not work - for example, this.
Test code: