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

Or

Which Table variable I should use inside Stored procedure?

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / jagadeesh

transation can be rollback in temptable
but in tablevaribale we cannot do this

Is This Answer Correct ?    1 Yes 0 No

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

Answer / kava

instance varialble

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More SQL Server Interview Questions

What are orphan records?

0 Answers  


Do comments need to go in a special place in sql server 2005?

0 Answers  


how to give input dynamically to a insert statement in sqlserver

3 Answers   HCL,


How to create a user name in a database?

0 Answers  


What is conditional split?

0 Answers  






What is a non equi join?

0 Answers  


Call by value and call by reference in procedure and function, with NOCOPY.

0 Answers   Nagarro,


What is data compression?

0 Answers  


What happens if the update subquery returns no rows in ms sql server?

0 Answers  


Do you know what is a trace frag? Where do we use it?

0 Answers  


application server is slow what may be the problem

0 Answers   Microsoft,


after migrating the dts packg to ssis by using migrtn wizrd in 2005. iam not able to open ssis pack and getting error. what r those errors? how to resolve?

0 Answers   Verizon,


Categories