I have tried to decipher the help file on the TRANSFORM function, but have failed to figure out how to do the simplest thing. I want to convert a number into a string with four digits using leading zeroes.
There are no examples on how to use the format codes (e.g., @L).
What is the format to turn 3 into '0003'?
Is it really necessary to use something like
RIGHT('0000000' + ALLTRIM(STR(3)), 4)?
That seems like overkill with a performance hit to me.
Does anyone know of a good reference for the TRANSFORM function?
Regards, Dick
There are no examples on how to use the format codes (e.g., @L).
What is the format to turn 3 into '0003'?
Is it really necessary to use something like
RIGHT('0000000' + ALLTRIM(STR(3)), 4)?
That seems like overkill with a performance hit to me.
Does anyone know of a good reference for the TRANSFORM function?
Regards, Dick