I've used the answer at Pad a string with leading zeros so it's 3 characters long in SQL Server 2008
to pad a column with leading zeros in my case it's two zeros and I'm using this:
RIGHT('0'+ISNULL(REPLACE(<columnName>, '"', ''),''),2)
Data ranges from 1 to 99 but also includes a value of of 'UNK' for unknown which is truncated using this method.
Is there a way around this or should I be exploring a different solution as I'm dealing with text and numbers in the same column?
Cheers
J