Forum Replies Created

Viewing post 1 (of 1 total)

  • RE: concatenate with leading zeros

    Try this

    SELECT RIGHT('000000' + CAST(Col1 as VARCHAR), 6) + RIGHT('000' + CAST(Col2 as VARCHAR), 3)

    Hope this helps.

    Edit:

    Just saw this was an older post lol

Viewing post 1 (of 1 total)