BACKGROUND:
I have a number of stored procedures used to return very detailed and wide (many columns) recordsetS for reporting.
I have found that I can execute this SP recordset into a table or temp table to then manipulate the data further using a syntax as follows:
Insert into #temp_Charges
exec charges_posted @p_one, @p_two
This works great as long as the temp table #temp_Charges has the same number of columns and same datatype as the SP. But most of the time I only need a few fields.
QUESTION: Can I execute just a select number of fields from the SP recordset into a smaller table/temp table
Thanks,
Patrick
I have a number of stored procedures used to return very detailed and wide (many columns) recordsetS for reporting.
I have found that I can execute this SP recordset into a table or temp table to then manipulate the data further using a syntax as follows:
Insert into #temp_Charges
exec charges_posted @p_one, @p_two
This works great as long as the temp table #temp_Charges has the same number of columns and same datatype as the SP. But most of the time I only need a few fields.
QUESTION: Can I execute just a select number of fields from the SP recordset into a smaller table/temp table
Thanks,
Patrick