SyntaxFix
Write A Post
Hire A Developer
Questions
Just use the FORMAT function (works on SQL Server 2012 or newer):
SELECT FORMAT(EmployeeID, '000000') FROM dbo.RequestItems WHERE ID=0
Reference: http://msdn.microsoft.com/en-us/library/hh213505.aspx