How can you change to get the decimal separator as comma instead of the decimal point (.)?

Showing Answers 1 - 9 of 9 Answers

debadritab

  • Jun 24th, 2008
 

declare @source varchar(30)
select @source = "10.236.155.17"
while charindex(".",@source) > 0
begin
select @source = stuff(@source,charindex(".",@source),1,",")
end
select @source

  Was this answer useful?  Yes

protech

  • Jul 15th, 2010
 

declare @mod_string varchar(20)
select @mod_string = str_replace("1234.567",".",",")
select @mod_string

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions