I need to store the output of a stored procedure in #table
the problem is my procedure’s output is a table of 70 field
so, I can’t create the #table before storing the output of the procedure
because it need alot of effort.
I need solution similar to select * into #table from Table_Name
witch automatic create the #table
I need to store the output of a stored procedure in #table the problem
Share
I found the solution at the following link :
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=85347
so, to store the output of a stored Procedure we need to use the
OPENROWSET()functionbut before using it we have to
enable show advanced optionsandAd Hoc Distributed QueriesHere is the solution :And for the parameters I can add them as string whit procedure revoke statement