It's definitely one of the most complete examples of DDL I've seen on here - thanks.
But could do with seeing how far you've got with the proc so far.
Why the restriction on the result not being a integer, and what should happen in the case it is?
Thanks