Convert Binary to bit

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
nishantrk
Premium Member
Premium Member
Posts: 23
Joined: Fri May 27, 2011 11:43 am

Convert Binary to bit

Post 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??
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Boolean is just a TRUE or FALSE. If you extract as varchar you will see a 0 or 1. Try doing that.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Unsigned TinyInt (uint8) is the closest DataStage approximation to Bit.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply