Click here to Skip to main content
15,886,067 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
For example, Consider below sp SPText. In US culture the parameter(12.34) behaves as a single parameter due to the decimal separator .(period).But in French culture, the same parameter behaves as two separate parameter because french considers coma as separator(12,34).

Exec SPText 12.34

We can solve this by replacing comma by dot, but it may not be feasible solution in huge application.

Is there any other way to achieve this ?

Thank you.
Posted

1 solution

Does SQL consider 12,34 as a numeric value? I'm pretty certain you need to convert this to a valid numeric in your client app using internationalisation before passing it to the database.

Unicode will allow french text to be stored but a number must be stored as a number, formatting in and out is up to the client application NOT the database.
 
Share this answer
 
Comments
ShaneAlive 14-May-15 3:36am    
Hi Mycroft,
The money data type has been used for the parameter 12,34 and it will be storing as in the same format in french DB.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900