Culture

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
 
B

Bruno Alexandre

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
 
P

Philipp Druyts

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
 
P

Patrice

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).
 
P

Philipp Druyts

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top