Sql Server 2005 Text Data type Issue

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
dspradeep
Participant
Posts: 59
Joined: Fri Aug 21, 2009 12:58 am

Sql Server 2005 Text Data type Issue

Post by dspradeep »

Hi,

We are facing issue with

Code: Select all

 TEXT datatype 
while importing this field then it is coming like LongVarchar then i have modified the sql query with cast(fieldname,varchar(8000)) then it is working fine but if the data contain more than 8000 then how can i read. That is the problem which we are facing now.

My Job Design is
-------------------------
Sqlsever stage --> copystage-->Seq file

I belive there is some way.... pls any one faced same issue and resolved exp.. then pls share it.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Would splitting into multiple columns work for you, i.e. cast(SUBSTR(TextField,1,8000),VarChar(8000)) then cast(SUBSTR(TextField,8001,8000),VarChar(8000)), etc.?
dspradeep
Participant
Posts: 59
Joined: Fri Aug 21, 2009 12:58 am

Post by dspradeep »

Thanks man , this is already in my mind but i thought worst case we can go this one. so i think no otherway i need to go that way only. let us see any other persons did in some other way also.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

There is no other way. 'Large Object' Field types like BLOB or TEXT fields are simply not supported. Move / process them with whatever native tools your database provides.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply