For reasons too boring to explain I need to create a user defined function that will return a number converted to a varchar with commas and decimals in the appropriate places.
As in:
select dbo.formatnumber(1234567.123)
should return a varchar containing '1,234,567.123'
If there is an obvious way to do this I apologize in advance.
I am running SQL Server 2000
As in:
select dbo.formatnumber(1234567.123)
should return a varchar containing '1,234,567.123'
If there is an obvious way to do this I apologize in advance.
I am running SQL Server 2000