>SQL Server: Table Variables Are Created In Memory Or In Tempdb
“Is it true that temp table are created in Tempdb but Table variables are created only in memory and because of this, table variables are more efficient as compared to temp tables”
My answer is that, it’s just a misconception that table variables are created in memory and truth is that both temporary tables and table variables are created in tempdb. Pinal Dave and Ken Simmons already proved it so well. So I will suggest reading these posts for more clarifications.
Posted on January 27, 2011, in Sql Server 2008, Tables. Bookmark the permalink. Leave a comment.