JesperMP
Electrical
- Aug 26, 2003
- 67
Hi.
Please bear with me, as I am a complete SQL noob.
Problem is this:
I have some VBScript code that writes values to SQL tables.
The code works OK, but I found out that for REAL values, the decimal character on the PC must be set to ".". If regional settings are set to german or danish for example, the decimal character becomes ",", and the writing of the REAL values to the database fails.
I have found out how to check which decimal character is the active one on the PC, so I generate a message if its "wrong" (i.e. "Decimal character must be set to '.' in Windows Regional Settings").
Questions:
Is the decimal character always "." in SQL ?
Is the separator character always "," in SQL ?
If they are configurable, how do you set them ?
If they are configurable, how do I programmatically determine which characters are active without changing them ?
THANKS for any help.
Please bear with me, as I am a complete SQL noob.
Problem is this:
I have some VBScript code that writes values to SQL tables.
The code works OK, but I found out that for REAL values, the decimal character on the PC must be set to ".". If regional settings are set to german or danish for example, the decimal character becomes ",", and the writing of the REAL values to the database fails.
I have found out how to check which decimal character is the active one on the PC, so I generate a message if its "wrong" (i.e. "Decimal character must be set to '.' in Windows Regional Settings").
Questions:
Is the decimal character always "." in SQL ?
Is the separator character always "," in SQL ?
If they are configurable, how do you set them ?
If they are configurable, how do I programmatically determine which characters are active without changing them ?
THANKS for any help.