Import columns with integer datatype from SQL Server 2008

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
jreddy
Premium Member
Premium Member
Posts: 202
Joined: Tue Feb 03, 2004 5:09 pm

Import columns with integer datatype from SQL Server 2008

Post by jreddy »

When I import a table definition from SQL Server 2008 (via ODBC Table definition import wizard in DS), any column that is defined as Integer in the DB gets imported as Int but with a precision of 10 - anyone know where this default is set and if that can be modified?

Thanks in advance
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

10 is the maximum number of digits that an Integer data type can have. Therefore, when represented as a string, a precision (length) of 10 seems appropriate. In fact it's not, because you also need a position for the sign!
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

There is no modifiable default for things like this.
-craig

"You can never have too many knives" -- Logan Nine Fingers
jreddy
Premium Member
Premium Member
Posts: 202
Joined: Tue Feb 03, 2004 5:09 pm

Post by jreddy »

Thank you Ray and Craig..
Post Reply