• robert.nesta123 (1/21/2013)


    ...

    but when I filter on REG.

    ....

    You can't filter on REG in this way, because it is encrypted, you can filter only on a decrypted value so:

    CONVERT(nvarchar(200),DECRYPTBYKEY(REG)) like '%DY%'