Hi all,
What is the difference between Table Variable and temporary table in SQL Server ?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Chintan RathodPosted Nov 20, 2012, 1:02 AM
Following is difference between Table variable and Temporary table.
CREATE TABLE statement.
SELECT INTO statement.
Can use user-defined data types.
Can use XML collections.
INSERT statement, including INSERT/EXEC.
SELECT INTO statement.
External Links
1) Difference TempTable and Table Variable – TempTable in Memory a Myth
2) Difference TempTable and Table Variable –Effect of Transaction
Thanks & Regards
----------------------
Chintan Rathod
Lalit RaghuvanshiPosted Feb 5, 2015, 11:03 AM
16 main differences between Temporary Table and Table Variable in Sql Server
http://www.webcodeexpert.com/2015/02/difference-between-temporary-table-and.html
Rohatash KumarPosted Nov 20, 2012, 2:07 AM
Satyapriya NayakPosted Nov 20, 2012, 1:41 AM
http://www.codeproject.com/Articles/18972/Temporary-Tables-vs-Table-Variables-and-Their-Effe
http://www.c-sharpcorner.com/UploadFile/d2b5dd/temporary-tables-in-sql3/
Rohatash KumarPosted Nov 20, 2012, 1:20 AM