DSXchange: DataStage and IBM Websphere Data Integration Forum
View next topic
View previous topic
Add To Favorites
Author Message
sainath



Group memberships:
Premium Members

Joined: 19 Nov 2004
Posts: 137

Points: 1243

Post Posted: Tue May 14, 2019 12:50 am Reply with quote    Back to top    

DataStage® Release: 11x
Job Type: Parallel
OS: Windows
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

Premium Poster


since January 2006

Group memberships:
Premium Members, Inner Circle, Server to Parallel Transition Group

Joined: 12 Nov 2002
Posts: 42950
Location: Denver, CO
Points: 221500

Post Posted: Tue May 14, 2019 10:00 am Reply with quote    Back to top    

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

_________________
-craig

Now I've got that feeling once again, I can't explain; you would not understand
this is now who I am. I have become comfortably numb.
Rate this response:  
Not yet rated
mouthou
Participant



Joined: 04 Jul 2004
Posts: 208

Points: 1991

Post Posted: Tue May 14, 2019 2:24 pm Reply with quote    Back to top    

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.
Rate this response:  
Not yet rated
yugee
Participant



Joined: 04 Feb 2011
Posts: 33

Points: 280

Post Posted: Wed May 22, 2019 5:02 am Reply with quote    Back to top    

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.
Rate this response:  
Not yet rated
Display posts from previous:       

Add To Favorites
View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2002 phpBB Group
Theme & Graphics by Daz :: Portal by Smartor
All times are GMT - 6 Hours