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

How does stuff differ from the replace function?

546


What do you mean by an execution plan? Why is it used?

526


What are examples of triggers?

606


System variable and temporary variables

1702


How retrieve field names from the table in SQL through JAVA code?

1395






How to use order by with union operators in ms sql server?

570


What are the advantages of sql azure?

116


What do you understand by the denormalisation?

547


What are the properties and different types of sub-queries?

558


What is page in sql server?

509


What is data file in computer?

536


Explain about system stored procedure?

588


What is the difference between Clustered and Non-Clustered Index?

588


Which data type columns are the best candidates for full-text indexing?

594


Do you know what is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure?

536