Home All Groups Group Topic Archive Search About
Author
24 Apr 2006 6:53 AM
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

Author
24 Apr 2006 7:44 AM
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

--


Bruno Alexandre
(a Portuguese in Denmark)

Show quote
"Philipp Druyts" <sty***@hotmail.com.invalid> escreveu na mensagem
news:O9F3Av2ZGHA.508@TK2MSFTNGP02.phx.gbl...
> 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
>
Author
24 Apr 2006 8:07 AM
Philipp Druyts
Show quote
"Bruno Alexandre" <bruno.***@filtrarte.com> schreef in bericht
news:ejaN$L3ZGHA.3848@TK2MSFTNGP05.phx.gbl...
> 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
Author
24 Apr 2006 9:16 AM
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).

--
Patrice

"Philipp Druyts" <sty***@hotmail.com.invalid> a écrit dans le message de
news: uprFzY3ZGHA.2***@TK2MSFTNGP03.phx.gbl...
Show quote
>
> "Bruno Alexandre" <bruno.***@filtrarte.com> schreef in bericht
> news:ejaN$L3ZGHA.3848@TK2MSFTNGP05.phx.gbl...
>> 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
>
Author
25 Apr 2006 7:27 AM
Philipp Druyts
"Patrice" <scr***@chez.com> schreef in bericht
news:eZ4m7%233ZGHA.1200@TK2MSFTNGP03.phx.gbl...
>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
>

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

AddThis Social Bookmark Button