Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
what is table variable in sql server
Posted

Its a variable where you temporary store the records / result. This is same as temp table but in case of temp table we need to explicitly drop it. In case of table variable it gets droped when it goes out of scope.

This is one of the article where you could get more information. Do googling :) to get more information.

http://www.developerfusion.com/article/84397/table-variables-v-temporary-tables-in-sql-server/[^]
 
Share this answer
 
A simple search on google[^] would make it more clear to you with lot of alternatives/ options.

See the threads from above search results:
Table variables in SQL[^]
Table Variables In T-SQL[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900