How to get the results of a direct SQL call to a stored procedure?

前端 未结 1 1669
孤城傲影
孤城傲影 2021-01-12 19:55

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         


        
1条回答
  •  囚心锁ツ
    2021-01-12 20:26

    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.

    0 讨论(0)
提交回复
热议问题