Thanks for providing some examples of things that didn't work and why, particularly the part about issues when you went from your local server to a production server. I wish I had a dollar for every time something worked great locally and then fell apart in production. I have spent countless hours trying to chase these down only to find out that I just needed to check the right box. Your explanation will save a lot of people like me many hours of research.
I also liked how you worked in some excellent points with regard to the proper way to use a table variable versus a temp table versus a "real" table.
Great article.
"Beliefs" get in the way of learning.