What formula would I use in a persisted column so that I can add the two columns below together, the first must be padded to 5 characters:
I went for format(ID,"00000") & RefNum
, but it doesn't work, any ideas please?
SELECT RIGHT('00000' + CAST(ID AS VARCHAR(5)), 5) + RefNum