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 |
Join 3 tables (table1, table2 & table3) in a single query. Inner join should be applied for table1 & table 2 and left outer join for table1 & table3 where table2.dept is ABC
What are the filtered indexes?
What is save transaction and save point?
What is intellisense?
What is the difference between DTS and SSIS?
Tell me extended events in sql server 2008?
Define outer join in sql server joins?
i want to create procedure for create table in sql server 2005 for example create procedure create_table @table varchar(20) as create @table( id int, name char(20) ) but it will get error what is solution?
How to generate the Reports for the Database? I need an Example for it.Will we manually do this or else any script is there? Please let me know ASAP...
Define candidate key, alternate key, composite key.
13 Answers Infosys, Software India,
What is stored in the mssqlsystemresource database? : sql server database administration
Explain basic SQL queries with SELECT from where Order By, Group By-Having?