What is the difference between Temporary table variable and
a Table variable?

Or

Which Table variable I should use inside Stored procedure?

Answer Posted / oliva

There are major theoretical differences between temporary tables:
Temp table will show below
create table #T (…)
Table var will show below
And table variables:

declare @T table (…)
scope of table var is only inside the Store Procedure.

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain Geography datatype in SQL Server

625


What is trigger explain with program?

530


What are different types of database indexes?

524


How to find the second highest salary of an employee?

582


Difference between aggregate functions of sql?

650






what is dbcc? : Sql server database administration

519


Tell me about pre-defined functions of sql?

691


What is the index requirement in SQL Azure?

72


What is acid properties?

588


What is update locks?

509


What the different topologies in which replication can be configured?

555


What is use of except clause? How does it differ from not in clause?

548


You are creating an application where users are asked their gender in the gender combo box you have three options: ‘male’ , ‘female’ and ‘i choose not to disclose’ these options are stored in the table as 1, 0 or null which datatype should you use?

543


What are different types of raid levels?

547


How to define output parameters in stored procedures?

516