Excel 2005 file to SQL server 2005

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
gooogle
Participant
Posts: 42
Joined: Tue Feb 23, 2010 3:40 pm

Excel 2005 file to SQL server 2005

Post by gooogle »

I have a excel file with column [Names](names in it). I am sending this file to target SQL 2005 table with column [Names] (names in it) varchar 64.

In the transformer:
XLS [Names] had varchar 244 | SQL [Names] has varchar 64
I changed XLS to varchar 64

Now if I add a new name to the XLS. DataStage wont send this new row across, it will only send the 1st row.

Error is: MetaData mismatch
COLUMN.PRECISION Expected = 64 Actual = 255

How to change Excel file that way if I add any new rows to the Excel file it should update the SQL table as well ?

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

Post by ray.wurlod »

I don't believe you can make this change at the Excel side. But you *could* make the output of the Transformer Varchar(255) to get the metadata to match.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply