Most efficient T-SQL way to pad a varchar on the left to a certain length?

Posted by Cade Roux on Stack Overflow See other posts from Stack Overflow or by Cade Roux
Published on 2008-09-23T15:46:39Z Indexed on 2010/06/05 22:22 UTC
Read the original article Hit count: 130

Filed under:
|
|

As compared to say: REPLICATE(@padchar, @len - LEN(@str)) + @str

© Stack Overflow or respective owner

Related posts about sql

Related posts about sql-server