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

What is plan freezing?

586


How to get a list of columns in a view using the "sp_columns" stored procedure?

620


write an SQL query to list the employees who joined in the month of January?

1155


How to convert binary strings into integers in ms sql server?

559


What are the kinds of subquery?

533






How to deploy the Report?

95


What are recommended options to be used while using db mirroring? : sql server database administration

575


what is a self join? Explain it with an example? : Sql server database administration

502


Suppose you want to implement the following relationships while designing tables. How would you do it?a.) One-to-oneb.) One-to-manyc.) Many-to-many

522


What are the rules to use the rowguidcol property to define a globally unique identifier column?

594


What does indexation mean?

533


What is de-normalization and what are some of the examples of it?

539


Is mysql the same as sql server?

515


What are functions in the sql server?

608


What is the meaning of lock escalation and why/how to stop this? : sql server database administration

609