You could also get it using except.
drop table if exists table1
create table table1(id int, name char(1), pin int)
drop table if exists table2
create table table2(id int, name char(1), pin ...
Create agent event alert for the errors that are written to the event log. Here's a util I did that generates a bunch, and can serve as a starting point. https://karaszi.com/agent-alerts-management-...
This appears to be peculiar to keyset cursors, where ownership chaining does not work as expected for scalar functions in the fetch portion of the cursor plan.
The issue is not limited to API cursors. ...