>>The important thing to remember is to always specify a lenght for the variable length expression used in SQL-select as otherwise SQL decides the final length based on the first expression it processes.
>
>I didn't know it. Thank you.
And remember that "the first expression it processes" might be completely random to you. So it might run fine in testing environment and on site it's a complete desaster.
(^_^)
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]