Showing posts with label comma-separated. Show all posts
Showing posts with label comma-separated. Show all posts

Friday, November 14, 2008

Convert INT to Comma-Separated NVARCHAR

A quick expression to change an INT like 1234567 to a comma-separated NVARCHAR like '1,234,567'.

REPLACE(CONVERT(NVARCHAR, CONVERT(MONEY, CountPages), 1), '.00', '')