ODBC metadata Import

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
Azzuri
Premium Member
Premium Member
Posts: 122
Joined: Tue May 13, 2008 11:42 am

ODBC metadata Import

Post by Azzuri »

Hi All, I'm trying to import a table definition from SQLSERVER 2000 and it's converting smalldatetime to char(16). When I try to read the data I get the error below

Error when checking operator: When binding output interface field "DUE_DATE" to field "DUE_DATE": No default type conversion from type "timestamp" to type "string[16]".

Anyone else run into this problem?
Azzuri
Premium Member
Premium Member
Posts: 122
Joined: Tue May 13, 2008 11:42 am

Post by Azzuri »

If I manually change the data type from char(16) to Timestamp for the date columns it works fine.

The problem is I don't want to do this for each table which has date columns
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

How did you import the metadata? Meaning, what tool did you use?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Azzuri
Premium Member
Premium Member
Posts: 122
Joined: Tue May 13, 2008 11:42 am

Post by Azzuri »

Hi Craig, I used DS Manger -Table Definitions -ODBC
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

From what I understand, the 'orchadmin' command does a better job with metadata for the PX product. Pretty sure that's it... orch-something-or-other. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Ah... orchdbutil not the admin command. Or you can just go off the menu and let it run the command for you:

Import > Table Definitions > Orchestrate
-craig

"You can never have too many knives" -- Logan Nine Fingers
Azzuri
Premium Member
Premium Member
Posts: 122
Joined: Tue May 13, 2008 11:42 am

Post by Azzuri »

Thanks Craig, I will look it up. Never imported that way before.
Post Reply