|SSPROP_INIT_AUTOTRANSLATE|Type: VT_BOOL<br /><br /> R/W: Read/write<br /><br /> Default: VARIANT_TRUE<br /><br /> Description: OEM/ANSI character conversion.<br /><br /> VARIANT_TRUE: The OLE DB Driver for SQL Server translates ANSI character strings sent between the client and server by converting through Unicode to minimize problems in matching extended characters between the code pages on the client and the server:<br /><br /> Client DBTYPE_STR data sent to an instance of [!INCLUDE[ssNoVersion](../../../includes/ssnoversion-md.md)] **char**, **varchar**, or **text** variable, parameter, or column is converted from character to Unicode using the client ANSI code page (ACP) and then converted from Unicode to character using the ACP of the server.<br /><br /> [!INCLUDE[ssNoVersion](../../../includes/ssnoversion-md.md)] **char**, **varchar**, or **text** data sent to a client DBTYPE_STR variable is converted from character to Unicode using the server ACP and then converted from Unicode to character using the client ACP.<br /><br /> For versions 18.6.4 and 19.1+ of the OLE DB Driver, the above conversions also apply to data transferred between a CharVal member of the SSVARIANT structure and an instance of [!INCLUDE[ssNoVersion](../../../includes/ssnoversion-md.md)] **sql_variant** variable, parameter, or column.<br /><br /> These conversions are performed on the client by the OLE DB Driver for SQL Server. This requires that the same ACP used on the server be available on the client.<br /><br /> These settings have no effect on the conversions that occur for these transfers:<br /><br /> Unicode DBTYPE_WSTR client data sent to **char**, **varchar**, or **text** on the server.<br /><br /> **char**, **varchar**, or **text** server data sent to a Unicode DBTYPE_WSTR variable on the client.<br /><br /> ANSI DBTYPE_STR client data sent to Unicode **nchar**, **nvarchar**, or **ntext** on the server.<br /><br /> Unicode **char**, **varchar**, or **text** server data sent to an ANSI DBTYPE_STR variable on the client.<br /><br /> VARIANT_FALSE: The OLE DB Driver for SQL Server does not perform character translations.<br /><br /> The OLE DB Driver for SQL Server does not translate client ANSI character DBTYPE_STR data sent to **char**, **varchar**, or **text** variables, parameters, or columns on the server. No translation is performed on **char**, **varchar**, or **text** data sent from the server to DBTYPE_STR variables on the client. Similarly, for versions 18.6.4 and 19.1+ of the OLE DB Driver, the driver doesn't translate data transferred between a CharVal member of the SSVARIANT structure and an instance of [!INCLUDE[ssNoVersion](../../../includes/ssnoversion-md.md)] **sql_variant** variable, parameter, or column. <br /><br /> If the client and the instance of [!INCLUDE[ssNoVersion](../../../includes/ssnoversion-md.md)] are using different ACPs, extended characters can be misinterpreted.|
0 commit comments