|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
|
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 -- Show quoteBruno Alexandre (a Portuguese in Denmark) "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 >
Show quote
"Bruno Alexandre" <bruno.***@filtrarte.com> schreef in bericht Sorry for any confusion, I meant the culture of the machine where the 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) > 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 "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 > "Patrice" <scr***@chez.com> schreef in bericht It was indeed not the right solution I was looking for, it was solved 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 > another way (there was a fault in the code somewhere). Thanks for all your answers ! Philipp |
|||||||||||||||||||||||