The database which I report from most often is not properly typed. Almost every field, with the exception of some integers and datetimes, are CHAR fields. This can cause problems with SSRS layouts because some fields have tons of trailing spaces.
This causes layouts to be messy and such. I often rtrim these fields in my scripts to prevent this.
Is there any performance impact if I create a general UDF to automatically perform this on multiple fields in a single script?
Is one function RTRIM. CAST, Convert, etc preferable over the others?