admin1code 1 10 11 12 5 6 45
admin1code 01 10 11 12 05 06 45
Update Country set admin1code = right('00'+ admin1code, 2)
UPDATE Country SET admin1code = '0' + admin1code WHERE LEN(admin1code) = 1 AND admin1code >= '0' and admin1code <='9'
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)