Recently I was working on a small utility and ran into a problem you may find interesting. I had a fairly intense query that was going to be the basis for several other queries, so I decided to put the results of that query into a temp table. The next step would be to join to that table and perform some additional operations. Good plan, right? As I started to test, it seemed that the part that built the temp table worked fine, but follow up operations that used it failed. Why? Well, that's what I want you to tell me! I'm going to steal an idea from Sean Burke and put up five bucks of my own cash as the prize for figuring this out. Here are the rules:
Good luck!
See the answer to this puzzle at http://www.sqlservercentral.com/columnists/awarren/missingtemptablesfollowup.asp
To read the rest of this article, and access thousands of other articles, we ask you to register on the site and subscribe to our newsletters.
We ask you to register on the site and subscribe to our newsletters. Subscribing to our newsletters gets you:
We ask that you give the newsletter a try for a week. Over 200,000 SQL Server Professionals a day find it entertaining and useful. If not, you are welcome to unsubscribe at anytime.
Steve Jones Editor, SQLServerCentral.com