Hi
I have two sql servers: MariaDB, MS SQL, both server are connected over ODBC, (engine connect, linked server). But if I run query in MariaDB over engine connect as remote command, strings are reverse coded in BE a LE on servers. Advise how to ensure that the data is converted to the same format in both systems during exec command?
Example:
CREATE TABLE ExternCommand1
(
cmd
VARCHAR(255) CHARACTER SET 'utf8' NOT NULL flag=0 ,
number
INT flag=1,
message
VARCHAR(255) flag=2)
ENGINE=connect
TABLE_TYPE=odbc
CONNECTION='DSN=MSSQL;UID=111;PWD=1111'
CHARSET = utf8
BLOCK_SIZE = 1
OPTION_LIST='Execsrc=1';
SELECT* FROM `ExternCommand1` WHERE`cmd` = CAST("INSERT INTO [DTB_INTERCHANGE].[dbo].[TestA] (ID, Tx) SELECT 15, N'ßÁȵ$€Ł'" AS VARCHAR(255) CHARACTER SET utf8);
But in table in column Tx is: ßÃȵ$€Å
Thank
Jaroslav