• Yes, I think that does it. That is much simpler and more elegant than what I did. Thanks to you both for your help.

    A clever person solves a problem. A wise person avoids it. ~ Einstein
    select cast (0x5365616E204465596F756E67 as varchar(128))