Loading attachments via DataStage to SQL Server

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
dganeshm
Premium Member
Premium Member
Posts: 91
Joined: Tue Aug 11, 2009 3:26 pm

Loading attachments via DataStage to SQL Server

Post by dganeshm »

Hi,

I have a requirement to load attachments like MS Word , Excels or emails to SQL Server. Anybody have any advice on how to do it.
Regards,
Ganesh
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You will need to use Microsoft facilities. There is no mechanism in DataStage for this task.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Sreenivasulu
Premium Member
Premium Member
Posts: 892
Joined: Thu Oct 16, 2003 5:18 am

Post by Sreenivasulu »

You can read excel (with some limitations like - no macros ) using a java api . Register the .so in the unx box.

Regards
Sreeni
dganeshm
Premium Member
Premium Member
Posts: 91
Joined: Tue Aug 11, 2009 3:26 pm

Post by dganeshm »

Sreenivasulu wrote:You can read excel (with some limitations like - no macros ) using a java api . Register the .so in the unx box.

Regards
Sreeni
Hi Sreeni,

Can you point me towards some Java API.

Regards,
Ganesh
Regards,
Ganesh
PhilHibbs
Premium Member
Premium Member
Posts: 1044
Joined: Wed Sep 29, 2004 3:30 am
Location: Nottingham, UK
Contact:

Post by PhilHibbs »

ray.wurlod wrote:You will need to use Microsoft facilities. There is no mechanism in DataStage for this task. ...
The closest you could get is to use DataStage to write out the contents of a script that calls a Microsoft command line utility to load the BLOB record - not sure if BCP would be the tool for that - and run this generated script as an After Job thingy. That would only work on a Microsoft Windows DataStage server though, I don't think there is a port of BCP for Unix.

Maybe the DS server script could telnet onto the Windows box and run BCP that way...
Phil Hibbs | Capgemini
Technical Consultant
Post Reply