A Microsoft platform for building enterprise-level data integration and data transformations solutions.
SQL Server Agent triggered SSIS package occasionally using a comma decimal separator
I have an SSIS 2014 package that has been running for about 5 years that migrates data from a vendor database on a 2016 SQL Server (running 2012 compatibility) to a corporate database on a 2014 SQL Server. The package is triggered by an SQL Server Agent job that uses a proxy.
The source query calls a vendor function that converts Float values to VarChar in an application defined format (decimal or scientific notation) and occasionally (about 1.4%) it uses a comma decimal separator instead of a period.
I know the issue relates to the STR() function because the query includes Floats converted using using CAST which always used a period decimal separator.
I have checked that the default language for the proxy's login is set to english_us and that the SSIS LocaleID is set to English (United States).
The issue is not related to the database servers because we use an active-passive method for business continuity and have regularly have to switchover to ensure readiness and all of the involved servers have switched more than once.
I am trying to figure out where the localization setting for STR() and CAST is at in this case but am not sure if it's at the connection from SSIS to Source database or is it set on the source database.