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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Chintan RathodRank #516 · 4.8K reputationPosted Nov 19, 2012, 8:02 PM EST
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
Rohatash KumarRank #12 · 57.7K reputationPosted Nov 19, 2012, 8:20 PM EST
Satyapriya NayakRank #47 · 31.5K reputationPosted Nov 19, 2012, 8:41 PM EST
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 KumarRank #12 · 57.7K reputationPosted Nov 19, 2012, 9:07 PM EST
Lalit Raghuvanshi50 reputationPosted Feb 5, 2015, 6:03 AM EST
16 main differences between Temporary Table and Table Variable in Sql Server
http://www.webcodeexpert.com/2015/02/difference-between-temporary-table-and.html