What is the difference between temp table and table variable?

Answer Posted / prakash

Temp table create automatically when you create any data
table create you must mention there create temporary table.
Table variable is must declare in procedure when you crate
procedure.

Is This Answer Correct ?    1 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to test a dml trigger in ms sql server?

570


What is the significance of master, tempdb and model databases?

523


Explain system functions or built-in functions? What are different types of system functions?

558


How can you fetch alternate records from a table?

538


What is logshipping and its purpose?

553






What is difference between sql and sql server?

538


What is the difference between a function and a stored procedure?

557


Tell me what is difference between view and materialized view?

516


What is the stuff and how does it differ from the replace function?

524


Scalability, Availability, Integration with internet, etc.)?

2429


How to drop an existing stored procedure in ms sql server?

535


What is wide table?

528


What are the new features of sql server 2008 r2 reporting service?

110


What do you mean by an execution plan? How would you view it?

491


What is the syntax for encrypting a column in SQL Server?

551