What is the difference between temp table and table variable?

Answer Posted / nandkumar karlekar

we can create the index on temp table which leads better
performance in join and searching .

temp table can be used in exec statements.

for Table variable above two point are not applicable

Is This Answer Correct ?    0 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can You Use A Stored Procedure To Provide Data To An Ssrs Report?

129


Can we use where clause with group by?

672


What is awe?

737


how we use window authentication connection with sql server.?

811


Explain the purpose of indexes?

721






Can group by and orderby be used together?

764


Explain the working of sql privileges?

797


What is the contrast amongst drop and truncate?

755


Can two tables share a primary key?

714


What is subquery? Explain the properties of a subquery?

682


how many triggers you can have on a table? : Sql server database administration

704


How do you create an execution plan?

661


John exports information periodically from a microsoft sql server database to an oracle database what is the best way to do this?

689


how to restart sql server in single user mode? How to start sql server in minimal configuration mode? : Sql server database administration

662


What are number line correlation administrators will use while working with a subquery?

836