Culture

  • Thread starter Thread starter Philipp Druyts
  • Start date Start date
P

Philipp Druyts

Hi,

Is there a way to retrieve the culture info from a database server/SQLServer
database?
Looked on Google ... but nothing really useful found ...

Thank in advance for any help ...

Philipp
 
Sorry, I didn't get the question right...

retrieve the culture from a database? but the culture is set under the
brownser that the user is using, it has nothing to do with databases...

the use of a database using culture is that you can have the name of country
/ lcid code / string value for country culture

like:
EN-us for English (United States)
EN-uk for English (United Kingdom)
DA for Danish (Denmark)
PT-pt for Portuguese (Portugal)

etc...

just googleit for LCID Codes
 
Bruno Alexandre said:
Sorry, I didn't get the question right...

retrieve the culture from a database? but the culture is set under the
brownser that the user is using, it has nothing to do with databases...

the use of a database using culture is that you can have the name of
country / lcid code / string value for country culture

like:
EN-us for English (United States)
EN-uk for English (United Kingdom)
DA for Danish (Denmark)
PT-pt for Portuguese (Portugal)

etc...

just googleit for LCID Codes

--


Bruno Alexandre
(a Portuguese in Denmark)


Sorry for any confusion, I meant the culture of the machine where the
database is running on.
I need to get the decimal seperator from the machine ...

TIA.

Philipp
 
I would strongly suggest to explain what is the problem you are trying to
solve. From the requirement you describe it looks like to me you are trying
to solve some kind of problem using a possibly bad solution.
Numbers coming to/from a DB are numbers. You should never need to get the
decimal separator (looks like a confusion between numbers and their
localized text representation which should be handled client side).
 
Patrice said:
I would strongly suggest to explain what is the problem you are trying to
solve. From the requirement you describe it looks like to me you are trying
to solve some kind of problem using a possibly bad solution.
Numbers coming to/from a DB are numbers. You should never need to get the
decimal separator (looks like a confusion between numbers and their
localized text representation which should be handled client side).

It was indeed not the right solution I was looking for, it was solved
another way (there was a fault in the code somewhere).

Thanks for all your answers !

Philipp
 
Back
Top