Plateau (3/6/2013)
ChrisM@Work (3/6/2013)
You have a BEGIN at the top of the sproc - does it have a corresponding END?That's it, oh god that was so obvious now
Thanks so much Chris
You're welcome. Get some sleep ๐
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden