I have a stored procedure and if the stored procedure does this:
SELECT 0 As Ret
DELETE FROM table where value1 = 1
Returns 1 row result with its value of 0 and column name Ret
But if I do this:
DELETE FROM table where value1 = 1
SELECT 0 As Ret
I get no returned results.
My question is, how do I get the second variation to return a value.
I'm using C++ and ODBC.