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

Why use stored procedures in sql server?

710


Explain nested trigger in sql?

762


What is the difference between NOROW and LOCKROW?

2478


What is a sql join?

748


Why olap is used?

721






Can you explain different types of locks in sql server?

709


Can you force a query to use a specific index?

693


Where are sql server usernames and passwords stored in the sql server?

790


How to execute a sql statement using odbc_exec()?

742


What are the general features of sql server management studio? : sql server management studio

777


What is a deadlock and what is a live lock?

750


What is difference statement and preparedstatement?

719


Can sql servers link to other servers like oracle?

601


What happens if null values are involved in datetime operations?

703


you accidentally delete the msdb database what effect does this have on your existing sql databases, and how do you recover? : Sql server administration

908