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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.