IIS 7 - floats returning with commas instead of periods

Posted by cc0 on Stack Overflow See other posts from Stack Overflow or by cc0
Published on 2010-04-22T17:31:39Z Indexed on 2010/04/22 17:53 UTC
Read the original article Hit count: 297

Filed under:
|
|

I'm having trouble reading rows with float values, because these rows return for example 12,34 instead of 12.34 as it should.

I suspect this is because both my IIS and SQL server is on a Norwegian Windows Server 2008. So I went to the regional settings and customized the default decimal symbol, then restarted my servers. The output in the database now shows the period decimal symbol, but when I request it through the IIS server it comes comma separated (the IIS server is on another computer, but that also has the default decimal symbol set to period).

The IIS server is IIS7 and the SQL Server is 2008

Does anyone have any idea how to fix this?

Any help would be greatly appreciated.

© Stack Overflow or respective owner

Related posts about sql-server

Related posts about iis