select right('00000000000'+convert(varchar(5),123),5)
select right('00000000000'+cast(123 as varchar(6)),6)