I\'m calling a stored procedure via direct SQL from X++, and I can\'t figure out how to get the integer return value from it. 0 is good, -1 is bad.
// Login
The executeUpdate returns an updated row count; otherwise 0 for SQL statements that return nothing.
The executeQuery returns an instance of the ResultSet class, but calling a stored procedure is not a select, so you break the contract.
What you are trying to do is not supported.
You may use C# as glue code or use the C# types directly using .NET CLR Interop.