What is the difference between temp table and table variable?

Answer Posted / rathikapoobalan

1. If we use Temporary Table in a stored procedure, We
should drop it at the end.
It is not necessary in the case of Table variable.

2. In Table variable we can hold maximum of 20000 records
only. If it exceeds, we can use temporary table

Is This Answer Correct ?    11 Yes 16 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?

119


How to round a numeric value to a specific precision?

649


What is the sql profiler?

612


what is sql server? : Sql server database administration

605


Is it true, that there is no difference between a rule and a check constraint?

593






How to stop a loop early with break statements in ms sql server?

657


How can you find out if the current user is a member of the specified microsoft® windows nt® group or microsoft sql server™ role?

703


What is repeatable read?

615


What is Lock table in SQL?

1097


What changes in the front end code is needed if mirroring is implemented for the high availability? : sql server database administration

693


How to join two tables in a single query in ms sql server?

625


What is compression - row-level and page-level compression?

607


What is awe?

670


Explain mixed authentication mode of sql server?

626


What is difference between count (*) and count column?

595