Possible Duplicate:
What's the difference between a temp table and table variable in SQL Server?
What is the difference between table variable and temp table, actually I have two question on it.
- how to decide when to use what?
- which one is better in performance and WHY ?