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

What command is used to delete a table from the database in the sql server and how?

547


Why do we use sql limitations? Which constraints can we use while making a database in sql?

567


What are various aggregate functions that are available?

514


How to enter comments in transact-sql statements?

557


What are scalar functions in sql?

617






What is the default sql server instance name?

564


Tell me about the approaches which you used to counter the DI problems.

769


What is a table called, if it has neither cluster nor non-cluster index? What is it used for?

604


What is self contained scalar sub query?

545


How to resolve the orphan use problem? : sql server security

534


What is sql view?

547


What is user-defined functions? What are the types of user-defined functions that can be created?

575


How do I clean up sql server transaction log?

578


Can a trigger be created on a view?

579


What are “lost updates”?

617