Hello to everyone.
I've a Windows 2000 server with a SQL Server 2000 and IIS web server all in english.
I've stored some data in decimal format and I read them via ASP to visualize them on a web page.
The problem is that I want to see those numbers with the european notation for the separators.
For e.g.:the number 123456.18 is visualized as 123,456.18, but I want to visualize it as 123.456,18.
I've tried to change Windows and SQL regional settings (to Italian) but nothing has changed.
I've already tried formatNumber(variable,2,,,-2) and formatCurrency(varible,2,,,-2).
In both cases (with the regional settings setted up in the right manner, so with a point to separate digits and comma for the decimals) it didn't work in the right way.
In the first case I see the 123,456.78 number and in the second case €123,456.78 (with the € simbol that I don't need).
Are there any others regional settings in IIS?
So, I was thinking if the solution can be in SQL or in a kind of conversion.
I've created a SQL procedure to convert the numbers from decimal to varchar and it also puts in the right position the points and comma by parsing the string.
The problem is that I've to run this procedure for each number (and I've a lot of numbers) and the server goes out of time.
Any idea?
Riccardo
I've a Windows 2000 server with a SQL Server 2000 and IIS web server all in english.
I've stored some data in decimal format and I read them via ASP to visualize them on a web page.
The problem is that I want to see those numbers with the european notation for the separators.
For e.g.:the number 123456.18 is visualized as 123,456.18, but I want to visualize it as 123.456,18.
I've tried to change Windows and SQL regional settings (to Italian) but nothing has changed.
I've already tried formatNumber(variable,2,,,-2) and formatCurrency(varible,2,,,-2).
In both cases (with the regional settings setted up in the right manner, so with a point to separate digits and comma for the decimals) it didn't work in the right way.
In the first case I see the 123,456.78 number and in the second case €123,456.78 (with the € simbol that I don't need).
Are there any others regional settings in IIS?
So, I was thinking if the solution can be in SQL or in a kind of conversion.
I've created a SQL procedure to convert the numbers from decimal to varchar and it also puts in the right position the points and comma by parsing the string.
The problem is that I've to run this procedure for each number (and I've a lot of numbers) and the server goes out of time.
Any idea?
Riccardo