After nine months of subscribing to this site. This is my first reply to a post.
That was awsome!! I ran each part of the script independently and I still trying to grasp the entire concept.
Can you explain spt_values, I attempted to use sp_helptext and the general bol and didn't find it.
Thanks