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 is the main difference between after trigger and instead trigger.

2 Answers  


What does set rowcount do?

0 Answers  


SQL Server Performance Tuning for Stored Procedures & reducing debugging time?

1 Answers   CarrizalSoft Technologies,


How do you persist objects, permissions in tempdb

1 Answers  


What xml support does the sql server extend?

0 Answers  






What does it mean to be in union?

0 Answers  


Is it possible to update the views? If yes, how, if not, why?

0 Answers  


How to run sql server 2005 books online on your local system?

0 Answers  


In which situation you use Self joins?

1 Answers   CarrizalSoft Technologies, HP, TCS,


Is sql server free?

0 Answers  


What is the difference between a "where" clause and a "having" clause?

0 Answers  


What is a recursive stored procedure in sql server?

0 Answers  


Categories