SyntaxFix
Write A Post
Hire A Developer
Questions
Use the RIGHT function... e.g.
DECLARE @testnum TINYINT SET @testnum = 3 PRINT RIGHT('00' + CONVERT(VARCHAR(2), @testnum), 2)