I removed the UDF GetCreateD and removed the ORDER BYs (for performance...it was too slow) and it worked fine.
I suspect the SQL0100 is referring to your GetCreateD UDF not finding anything?
This mailing list archive is Copyright 1997-2013 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact