Reputation: 21
there are many threads about temporary tables vs table variables.
However, my question is, what makes temporary table much faster than normal table in Microsoft SQL Server?
My stored procedure runs 5 times as fast if I insert to temp table, and then just move data out of it into normal table.
The most obvious answer would be keys/indexs, but the normal table is without any keys at all.
What else would make it run faster?
Thanks
Upvotes: 1
Views: 1920
Reputation: 280262
Several possibilities:
Upvotes: 4