I need to run a proc, and be able to insert the results into a tmp table to work with.....the catch is...I don't have access to change or open the sproc, just run it in query anylyzer and see the result.....Any ideas..
Create Table #Temp(Field1 as Integer, Field2 As VarChar(20))
Insert into #Temp Exec ProcedureName
Unfortunately, it would appear that you have to use a 'real' table or a temp table. I prefer using table variables in most of my sprocs because I find that performance is a little better (depending on data). You cannot use table variable in this case.
-George
Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.