I have one stored procedure. I don't know the data type of the result set. I want to avoid prior declaration of table schema.
Now, I want to store the result set of procedure in a temporary table. In pseudo SQL it would look like this:
select * into #table1 exec proc_name
What would be the real SQL to do it?