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 data mart? : sql server analysis services, ssas

1 Answers  


Why is replication required on the sql server?

1 Answers  


What is normalization and what are the advantages of it?

0 Answers  


What are ddl triggers and types of ddl trigger?

1 Answers  


What is a job?

3 Answers  


Which command is used for user defined error messages?

1 Answers  


What is table valued function and scalar valued functions?

1 Answers  


What is tablesample?

1 Answers  


wat is tuff file in log shipping, wt is d use of tht file?

1 Answers   TCS,


Using the customer, and order table in northwind database, please write a query to produce xml?

1 Answers  


What is function of CUBE ?

1 Answers   HCL,


What are the steps to take to improve performance of a poor performing query? : sql server database administration

1 Answers  


Categories