Temp Table vs. Table Variable | Aaron Lowe
PingBack from http://www.aaronlowe.net/archive/2012/09/temp-table-vs-table-variable/
View Articlere: Temporary Tables in Stored Procedures
Nice post Paul - will be linking to it in my class deck on tempdb and temp table abuse.
View Articlere: Temporary Tables in Stored Procedures
Hi Kevin, Thanks! Yes, the screenshots are from SQL Sentry's Plan Explorer; I find its display style convenient for blog posts. Paul
View ArticleThinknook | SQL Server Table Variable vs Temporary Table vs CTE
PingBack from http://thinknook.com/sql-server-table-variable-vs-temporary-table-vs-cte-2012-01-12/
View Articlere: Temporary Tables in Stored Procedures
Just wanted to say that this is a fantastic post, Paul. Well researched and well written! Are those Plan Explorer screen shots, btw? Just curious... Thanks again, -Kevin
View Articlere: Temporary Tables in Stored Procedures
Hi John, Good question. You certainly could use dynamic SQL to create temporary tables each time, and this would prevent caching as I describe in the follow-up post to this one at...
View Articlere: Temporary Tables in Stored Procedures
Martin, Connecting via the DAC to see sys.sysrscols (or sys.sysrowsetcolumns in 2005) I have noticed that issuing a CHECKPOINT seems to cause the in-memory counters to be flushed to persistent storage,...
View Articlere: Temporary Tables in Stored Procedures
I have a simple question given the complexity of the subject matter. Would it make sense in some cases to dynamically (programatically) change the name of the temporary tables everytime the stored...
View Articlere: Temporary Tables in Stored Procedures
Hi Paul, Excellent post! Some time back I had my encounter with parameter sniffing. All that I could find online was just a few posts - providing just high end theoretical information. Compared to...
View Articlere: Temporary Tables in Stored Procedures
A very, very interesting post! Thank-you for taking the time out and writing it, Paul! I will be reading it again tomorrow, ask the team to read it and then spend a couple of hours during week-ends...
View Articlere: Temporary Tables in Stored Procedures
Great post Paul, thank you very much for taking the time!
View Articlere: Temporary Tables in Stored Procedures
Strange behaviour indeed that requesting an estimated plan should affect things like that! I've also found that the modification counter doesn't always seem to get updated. Starting with an empty...
View Articlere: Temporary Tables in Stored Procedures
Hi Sat Pal, I was a bit worried about the length of this one, so thanks for the feedback on that. I think I answer your questions about simultaneous executions in my follow-up post (at...
View Articlere: Temporary Tables in Stored Procedures
Hi Martin, Yes, on the face of it, I would expect that to recompile due to the change in cardinality of #T from 10 when the plan was cached to 990000 for the second execution. I notice that it does...
View Articlere: Temporary Tables in Stored Procedures
Great Post Paul! I usually get distracted in between when there is a big post and takes me longer than usual to read through the whole post, but in this one I was hooked and read it in one go and...
View Articlere: Temporary Tables in Stored Procedures
Regarding Recompile Thresholds I've encountered a case where increasing table cardinality from 10 to 1,000,000 still doesn't seem to cause an optimality based recompile....
View ArticleTemporary Object Caching Explained
SQL Server 2005 onward caches temporary tables and table variables referenced in stored procedures for
View Articlere: Temporary Tables in Stored Procedures
Wow - I think this really explains some stuff that I used to fight with in "search" procedures using temp tables. Thanks for another fantastic read - that I will need to read one more time to digest.
View Articlere: Temporary Tables in Stored Procedures
Hi AMB, Do you realize you just summarized in 30 words what it took me 6,600 words to say? LOL! Seriously, thanks for that - it's good to hear that the points I was trying to make were received as...
View Article
More Pages to Explore .....