Can you clarify what errors you get? I just hit the example and everything works fine.
Edit - the EmailAddress fields that you are trying to update are already close to the full size of the field, to make sure that the editing applies to all the necessary record, you need to change the addition of 2 to the column size for this field
BTW Sql to convert it again
update Contact set EmailAddress = SUBSTRING(EmailAddress , 0 , len(EmailAddress ) - 1) where SUBSTRING(EmailAddress , len(EmailAddress ) - 1, 2) = '.x'
MrTelly
source share