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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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
More Pages to Explore .....