I have a stored procedure (SP1) that calls another stored procedure (SP2). In SP2, a variable (@test_codes) is declared and assigned a comma-delimited list of values. SP1 wants to get this string from SP2 and store it in a variable, but I'm not sure how to make that work.
Is there some way to return or select @test_codes from SP2 such that SP1 can grab it?
Is there some way to return or select @test_codes from SP2 such that SP1 can grab it?