I have an SP that produces a table that can be either one or two columns, depending on a paramter. I'd like to call it from a second SP and accept the result. I can't seem to get the syntax correct to exec the first SP and accept its return value.
Since in this particular instance I know that I'm going to get a single column table back, I have created a temp table and am trying to set the value of the temp table to the records returned by the first SP.
I think this is a confusing explanation of a simple problem: how can one return a table from a SP into another SP?
Sorry for the newbie question, but I've searched this forum and can't seem to find anything quite on point.
Since in this particular instance I know that I'm going to get a single column table back, I have created a temp table and am trying to set the value of the temp table to the records returned by the first SP.
I think this is a confusing explanation of a simple problem: how can one return a table from a SP into another SP?
Sorry for the newbie question, but I've searched this forum and can't seem to find anything quite on point.