I have used Table Variables to accomplish the same thing. Are there a drawbacks to using table variables instead of CTEs? Are there advantages to using CTEs?
Great article. I particularily like the tip on tempates, but don't understand how to store the custome template. Can it be placed in the Templates folders? I don't see a...