SyntaxFix
Write A Post
Hire A Developer
Questions
I hope this helps someone.
STUFF ( character_expression , start , length ,character_expression ) select stuff(@str, 1, 0, replicate('0', @n - len(@str)))