>See
How to return a value from dynamically executed T-SQL code FAQ #8130
I knew I missed something :-)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.