SQL Server has no knowledge of the Windows setting that the client machine has which is connected
through a connection. I.e., asking for what decimal setting a connection's windows machine have is
impossible. You need to provide that information though the client application somehow.
--
Tibor Karaszi, SQL Server MVP
<a rel="nofollow" style='text-decoration: none;' href="http://www.karaszi.com/sqlserver/default.asp" target="_blank">http://www.karaszi.com/sqlserver/default.asp</a>
<a rel="nofollow" style='text-decoration: none;' href="http://www.solidqualitylearning.com/" target="_blank">http://www.solidqualitylearning.com/</a>
<a rel="nofollow" style='text-decoration: none;' href="http://www.sqlug.se/" target="_blank">http://www.sqlug.se/</a>
"Kristoffer Persson" <hidden> wrote in message
> Hi!
>
> I would like to know which decimal separator is used on a computer, from a
> stored procedure.
>
> My stored procedure will insert a decimal value into a string, that must be
> formatted in a special way, and insert the string in a table. The problem is
> that decimal values in the string MUST HAVE the regional decimal separator
> in order to work on the other end.
>
> Something like CONVERT(VARCHAR(20), 123.456, USE_REGIONAL_DEC_SEPARATOR)
> would be nice.
>
> So, is it possible? If I need to use REPLACE(), then I need to know what to
> replace the dot with...
>
> - Kristoffer -
>
> >> Stay informed about: Regional settings - decimal separator