Field length more than 8000

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
sainath
Premium Member
Premium Member
Posts: 138
Joined: Fri Nov 19, 2004 3:57 pm

Field length more than 8000

Post by sainath »

Hi
I have incoming varchar field which is more than 8000
What data type I should define in data stage and corresponding
Data type in sql server


Thks
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

What is the "corresponding data type in SQL Server"?
-craig

"You can never have too many knives" -- Logan Nine Fingers
mouthou
Participant
Posts: 208
Joined: Sun Jul 04, 2004 11:57 pm

Post by mouthou »

You positioned a question such that it is about exceeding the length of string data types (MAX is 8000 as we see).

As Craig mentioned and as you know, your choice of data type in DS is usually based on the data type defined in DB table. But in this case,as its about the maximum in which SQL Server DB might have defined with varchar(MAX), you could try LONGVARCHAR in DS. I haven't tried LONGVARCHAR with that much string length but if it is critical for you, you could contact IBM support for applicable patches to make LONGVARCHAR work.
yugee
Participant
Posts: 34
Joined: Fri Feb 04, 2011 5:54 pm

Post by yugee »

I would suggest you import the table metadata in DataStage and see how the column you are referring is defined. Based on that, if you see the length is not sufficient, you can define the column as LONGVARCHAR and don't give the length. In most of these cases, you can try different definitions and you will be able to figure out the solution.
Post Reply