I need to return two fields from a database concatenated as \'field1-field2\'. The second field is an int, but needs to be returned as a fixed length of 5 with leading 0\'s. T
Another way (without CAST or CONVERT):
SELECT RIGHT(REPLACE(STR(@NUM),' ','0'),5)