Hi,
You don't get see the strange result if you
are running my SP in QA alone or running
the whole SP command in QA.
You have to debug it in QA to see that.
>Actually, I just tried it myself.....and if I type the following...
>
>exec dbo.a_123 ''
>
>I get the correct result, even without using the rtrim
>
>What exactly are you typing in QA? (the exact command)
>
>Kevin
Best Regards
Virusim