-1
I need to put 9 zeros after 02:
0207200000053P 02- here comes the zeroes - 07200000053P
that is coming from a variable called @vNossoNumero
. How do I do that?
Variable
Select @vNossoNumero = case when @Conta='0000064-7' then '16' else '02' end+RIGHT('00000000000' + convert(varchar,convert(bigint,@vSequencia) + 1),11)
pad
– rLinhares
It would be interesting if you demonstrate the code you already have so we can help you
– Sorack
From the variable it returns like this: Select @vNossoNumero = case when @Account='0000064-7' then '16' Else '02' end+RIGHT('00000000000' + Convert(varchar,Convert(bigint,@vSequencia) + 1),11)
– Felipe Michael da Fonseca
And the other string? comes from where and goes where?
– Sorack