Quantcast
Channel: Answers for "Query times using table variables, vs temp tables, when using MS CLR vs SMSS"
Browsing all 6 articles
Browse latest View live

Answer by Grant Fritchey

First thing that comes to mind is a difference in the ANSI settings between the two connections. That can lead to completely different execution plans which can explain different performance. Did you...

View Article



Answer by Pavel Pawlowski

I only add to @Grant Fritchey answer, that the table variable behaves differently compared to temp tables. As there are no statistics created for table variables so the query optimizer always takes the...

View Article

Answer by Jayanth_kurup

First are you testing the code correctly , i.e with clean buffer etc. How much data are you using when performing the test. How many times have the tests been run. Using a table variable will still...

View Article

Answer by Grant Fritchey

First thing that comes to mind is a difference in the ANSI settings between the two connections. That can lead to completely different execution plans which can explain different performance. Did you...

View Article

Answer by Pavel Pawlowski

I only add to @Grant Fritchey answer, that the table variable behaves differently compared to temp tables. As there are no statistics created for table variables so the query optimizer always takes the...

View Article


Answer by Jayanth_kurup

First are you testing the code correctly , i.e with clean buffer etc. How much data are you using when performing the test. How many times have the tests been run. Using a table variable will still...

View Article
Browsing all 6 articles
Browse latest View live




Latest Images