Page 1 of 1

Convert Binary to bit

Posted: Thu Feb 16, 2012 12:33 pm
by nishantrk
Hi,

While extracting data from salesforce to load to sql server 2008 ,
one of the field is defined as "boolean" in salesforce , The definition of the same in sql server table is "bit" .
I was able to get the data from salesforce by defining the field metadata as "binary" ,But how do I convert this to "Bit" to be loaded in Sql server??

Posted: Thu Feb 16, 2012 1:27 pm
by DSguru2B
Boolean is just a TRUE or FALSE. If you extract as varchar you will see a 0 or 1. Try doing that.

Posted: Thu Feb 16, 2012 3:10 pm
by ray.wurlod
Unsigned TinyInt (uint8) is the closest DataStage approximation to Bit.