sql server - How can i set MySQL mode to 'ANSI' from an SSIS package -
i have ssis package transfers data mssql server 2008 r2 table mysql 5.6.
set sql_mode='strict_trans_tables,no_auto_create_user,no_engine_substitution,ansi_quotes'
in package, prior executing data flow task transfer, i'm first executing command above when real data transfer step reached i'm getting error similar below
an exception has occurred during data insertion, message returned provider is: error: have error in sql syntax; check manual corresponds mysql server version right syntax use near '"mycolumn1", "mycolumn1") values (?, ?)'
as investigated this, appeared though error can resolved setting mysql mode 'ansi' since i'm new mysql, thinking above command setting mode 'ansi', true?
if isn't true, how can set mysql mode 'ansi' ssis package?
also privileges need on mysql server?
apparently, trick ssis run set session sql_mode= 'ansi';
command before inserting data without messing package itself?
the easiest way have odbc driver send command @ point ssis opens connection, can configured in settings of odbc source
ref: http://www.ash.burton.fm/blogs/2011/03/pgsql_ssis_mysql , indeed resolved error have facing.
Comments
Post a Comment