Is there a way to define a temp table without defining it\'s schema up front?
you don't need OPENQUERY. Just put "INTO #AnyTableName" between the select list and the FROM of any query...
SELECT * INTO #Temp1 FROM table1 WHERE x=y