I have two stored procedures, ProcA and ProcB. I would like to ProcA to execute ProcB and have ProcB return an integer back to ProcA.
My preference would be use a RETURN statement in ProcB, but I’ll use an OUTPUT parameter if that’s my only choice.
Yes, there are similar questions on stackoverflow. But have yet to find a single one that will compile using Microsoft SQL Server 2008.
Returns