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
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 |
Answer / jagadeesh
transation can be rollback in temptable
but in tablevaribale we cannot do this
Is This Answer Correct ? | 1 Yes | 0 No |
In what sequence sql statement is processed?
what is the basic diffrence betn a col declared in char(1) and in varchar(1)
how to get the maximum among two tables,for example table 1 (dep1) have (emp_id,emp_name,salary) columns and table 2 (dept2) have (emp_id,emp_name,salary) columns,i want which employee have the maximum salary among two tables?
what’s the difference between Covering Indexes and Clustered Indexes ? how to use clustered index small ?
Which operator do you use to return all of the rows from one query except rows are returned in a second query?
How to make remote connection in database?
What are the aggregate and scalar functions?
What is delete query?
Can a stored procedure call itself or a recursive stored procedure? How many levels of sp nesting is possible?
Can a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible?
What is a Join and explain its types?
Define inner join in sql server joins?