Can you execute a stored procedure which sets an output parameter from a named query? I don’t see anything in the documentation that would explain how to do so.
It’s easy enough to excecute the stored procedure through the system.db functions, but I would like to stick with named queries as much as possible.