Search code examples
mysqlsql-serverssisetldata-conversion

data conversion from MySQL to SQL in SSIS


I need to transfer some tables from MySQL to SQL DB. I have an ID column (data type: bigint) in MySQL which is starting from 1 and it grows incrementally. I created a bigint column in the destination table in the SQL DB, but when the filling is done, the data is randomly changing:

source column
-1
-2
-3

ideal destination column
-1
-2
-3

what really happens  
-65 
-34345 
-87643

The ODBC connector is set to Unicode.

Why does this happen?


Solution

  • The problem was ith the ODBC connector. We had to et the initial statement to:

    set sql_mode= 'ANSI'
    

    enter image description here