Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inserting Stored Procedure results into Table data type

Status
Not open for further replies.

dddenney

Programmer
Nov 29, 2000
41
US
I am writing a stored procedure and would like to call another stored procedure and place the results into a Table data type. I know this can be done using temp tables..

Insert #tmpTable
exec sp_StoredProcedure


But since this causes more frequent re-compiles of the stored procedure I would rather use a table data type. Does anyone know how or if this can be done?

Thanks in advance...

Dan
 
Cannot use a table variable for this purpose. Will not except an execute statement.

Thanks

J. Kusch
 
I was afraid of that. I was hoping there might be some way to work around that.

Thanks anyway.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top