SQL Server EE Stage WRITE method not supporting BIT datatype

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
SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

SQL Server EE Stage WRITE method not supporting BIT datatype

Post by SURA »

Hi All

I got an error in the Director as CoreLxLoad,7: 22003 : [Microsoft][ODBC SQL Server Driver]Numeric value out of range when i tried to load the data using SQL Server EE Stage WRITE method.

After filter one by one scenario, found the data type BIT is causing problem. The value for that column is 1 for all the records.

I changed it to INT and ran the job went smoothly. Whereas i used upsert to load the same data using BIT data type and it is also working good.

Now the question is, why BIT data type is not supporting while using WRITE method.

Any idea?

Regards
DS User
suse_dk
Participant
Posts: 93
Joined: Thu Aug 11, 2011 6:18 am
Location: Denmark

Post by suse_dk »

I can't answer why - but I know it is not supported in a read operation from a sequential file either. But it must be defined as a smallint, int or NChar(1) in order to get the right result.
_________________
- Susanne
Post Reply