Page 1 of 1

USING LOADER TO MIGRATE FROM ORACLE TO SQL SERVER...

Posted: Tue 06 Aug 2019 21:01
by Welton3
In Oracle, we store boolean values in a column of type CHAR(1) with a 'T' or an 'F'. Migrating to SQL Server, we would like to store boolean values in BIT type columns. We are using OracleLoader and SqlLoader components to load the data from Oracle, and then write it to SQL Server.

What is the best way to convert the CHAR(1) values to BIT values during the transfer?

Re: USING LOADER TO MIGRATE FROM ORACLE TO SQL SERVER...

Posted: Wed 07 Aug 2019 16:37
by Shalex
OracleLoader is used for loading data INTO Oracle Server. You can retrieve data FROM Oracle Server with OracleDataReader. If the CHAR(1) value is 'T', assign SqlLoader["BIT_column"] to 1 (and 0 in case of 'F').

Is that what you need?

Re: USING LOADER TO MIGRATE FROM ORACLE TO SQL SERVER...

Posted: Fri 09 Aug 2019 15:31
by Welton3
Yes, thank you. We got it resolved.