Possible Duplicate:
Converting float to varchar with correct decimal separator
When I run: select convert(float, 10.12), convert(decimal(5, 2), 10.12)
I get this result:
(No column name) (No column name)
10,12 10.12
Why is this happening? I’m from Brazil and my Windows language is set to Portuguese, but shouldn’t both decimal and float return ‘.’ or ‘,’ at same time?
I’m not sure if this is the issue, but it appears to be a fomatting bug in SSMS. It uses the OS regional setting for float and money, but not for decimal.
http://connect.microsoft.com/SQLServer/feedback/details/458416/microsoft-sql-server-management-studio-doesnt-get-os-regional-setting