Declare @tempTableVariable Table(
email varchar(50)
)
Insert INTO @tempTableVariable
EXEC GetData
select email
from @tempTableVariable
I get the following error: "Column name or number of supplied values does not match table definition."
Is there a simple way of getting a subset from GetData without explicitly declaring all the fields in the table variable declaration?