I have a temp table that is used in a union. But it resulted an error saying "cant reopen table".
I've read that I need to rename the tempTable.
How could I rename a temporary table when I'm using the tempTable in a union?

(query for the temp table) AS temporarytablename

Hello KJM,

Please post your code, thanks !

Hans

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.