Wednesday, July 15, 2009

Extract Data from Stored Procedure output into a Table in SQL

How to "Extract Data from Stored Procedure output into a Table in SQL"

There could be many ways to do this. If you are using SQL Server 2008 it would be better to have your stored procedure return a table variable.

If you are running prior versions best could be to use "INSERT INTO #tmpTable EXEC spStoredProcedure" method


No comments: