Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New Tables, Stored Procedures and UNION clauses

Status
Not open for further replies.
Jan 22, 2004
3
IE
Hi forum!

I have a working stored procedure that concatinates records from a number of tables via UNION.

I now need to create a new table (through code) using the results of this SP and have discovered that using &quot;select * into <newtable> from <sourcerecordset>&quot; does not work if the <sourcerecordset> is a storedprocedure but it does work if the <sourcerecordset> is a table.

I've searched everywhere (I think) and I'm stuck.

Thanks in anticipation...

Dino
 
Thank you SwampBoogie. I have tried this already but suspect that the table needs to have been created first in order for &quot;insert into t exec p&quot; to work???
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top