tc3596
Technical User
- Mar 16, 2001
- 283
I've read many posts that recommend using table variables over Temp tables. In my brief tests between the two, I have found that temp tables are indeed quicker. My test was this. I made a copy of one stored proc that used a temp table. On the copy version I edited it to use table variables instead. Running both stored procs from query analyzer, the one with temp variables ran in 2 seconds and the other in 8 seconds. I repeated this several times, all with the same result. So, what am I missing here? Aren't table variables supposed to be faster?