nareshmsbi13 (5/8/2013)
I have execute my stored procedure using a select statement likeExec SP where select * from view,wt is the finall out put of this query can some one tell me the answer,,
And one more thing is have to manipulate the Temprory tables,Is it manipulate the temprory tables ,but how some one tell me the answer with an example
you will need to create a temporary table to capture the stored proc results: you have to know the datatypes to build your table beforehand:
CREATE TABLE #tmp(
view varchar(30),
wt varchar(30) )
--insert the results into the properly shaped temp table
INSERT INTO #tmp
EXEC pr_MyProcedure @Param = 42
SELECT * FROM #tmp
Lowell