I have a large SQL statement with a Union to another large SQL stmt. When I run it I see the data in the results pane of query analyzer. I want to put the results into a temp table to be able to write additional sql statements to update another table. Also to speed up execution I should index some of the fields. Everytime I try and place "INTO #tempfile" or a similar INTO .dbo.Temp_workfile" in the large SQL statement, I get an error.