thisisfutile - Wednesday, March 29, 2017 2:26 PM
FORMAT is 44 times slower than CONVERT. I've not tested the alternate solution that I've posted on this thread but I do know that REPLACE and STUFF are nasty fast and probably won't add much time to it all. If I get some time, I'll test it on a million row table and see what happens.
--Jeff Moden
Change is inevitable... Change for the better is not.