tstagliano (6/28/2013)
Thanks for the information but i dont what the table to be a temporary table in the tempdb database. I need it to appear in the ConstarOLAP_PROPHIX_FactDB where the SPROC is running
I specifically mentioned you could use permanent tables, but it might not have been clear enough.
Which target able you use is up to you, whether it's a temporary table a permanent table that already exists, my snippet was only to demonstrate how to insert the results of the openquery data into a table so it can be used in other queries.
Lowell