• mrTexasFreedom I'm glad my code helped a bit, but mister magoo really identified the culprit, i think;

    some process imported(and maybe still imports) data that should be nvarchar instead of varchar;

    you should try to track down whatever that process is and fix it at the source; otherwise this cleanup-after-the-mess thing is going to be needed every time that other process runs.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!