I'm sure there are some tricks for this, but the obvious solution that comes to mind is:
INSERT INTO
EXEC dbo.mySproc @a, @b, @c OUTPUT
... according to the Remus reaction, this is a waste of the processor, I / O, etc.
If you can add an extra parameter to your stored procedure that allows you to suppress the result set, this will be great.
source
share