Quantcast
Channel: Why is using a table variable more than twice as fast as a #temp table in this specific case? - Database Administrators Stack Exchange
Browsing all 3 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Answer by Erik Darling for Why is using a table variable more than twice as...

Disco InfernoSince this is an older question, I decided to revisit the issue on newer versions of SQL Server to see if the same performance profile still exists, or if the characteristics have changed...

View Article



Image may be NSFW.
Clik here to view.

Answer by Martin Smith for Why is using a table variable more than twice as...

The output of SET STATISTICS IO ON for both looks similarSET STATISTICS IO ON;PRINT 'V2'EXEC dbo.V2 10PRINT 'T2'EXEC dbo.T2 10GivesV2Table '#58B62A60'. Scan count 0, logical reads 20Table 'NUM'. Scan...

View Article

Image may be NSFW.
Clik here to view.

Why is using a table variable more than twice as fast as a #temp table in...

I was looking at the article here Temporary Tables vs. Table Variables and Their Effect on SQL Server Performance and on SQL Server 2008 was able to reproduce similar results to those shown there for...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images