dbTalk Databases Forums  

Can a DTS Package receive mail and access Attached Files?

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Can a DTS Package receive mail and access Attached Files? in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Snake
 
Posts: n/a

Default Can a DTS Package receive mail and access Attached Files? - 05-31-2005 , 06:09 PM






I have a requirement for a DTS package to read mail from Exchange and process
any file attachments. We receive data files from various vendors this way
which today must be manually saved to a directory and their DTS load packages
manually started, which is slow and error-prone.

Any comments?

Michael

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Can a DTS Package receive mail and access Attached Files? - 06-01-2005 , 12:26 AM






Not natively.

I would look to build a custom task to do this and invoke, if you must,
through DTS.

Allan

"Snake" <Snake (AT) discussions (DOT) microsoft.com> wrote


Quote:
I have a requirement for a DTS package to read mail from Exchange and process
any file attachments. We receive data files from various vendors this way
which today must be manually saved to a directory and their DTS load packages
manually started, which is slow and error-prone.

Any comments?

Michael


Reply With Quote
  #3  
Old   
Helge C. Rutz
 
Posts: n/a

Default Re: Can a DTS Package receive mail and access Attached Files? - 06-01-2005 , 02:26 AM



Hi Snake,

"Snake" wrote:
Quote:
I have a requirement for a DTS package to read mail from Exchange and
process any file attachments. We receive data files from various
vendors this way which today must be manually saved to a directory
and their DTS load packages manually started, which is slow and
error-prone.
in addition to Allans idea, you could use the normal SQL Mail feature
inside the dts package with sql tasks.
When you fetch mails with xp_readmail, the attachements should be stored in
an temp folder automaticly, and the pathes are returned in one parameter.
You then have to pass this parameter to an ActiveX task where you strip
this parameter, change the input connections and maybee also loop through
multiple attachements.

Before doing this, you should read the SQL Mail docu and the corresponding
KB articles carefuly, because there are some pitfalls.

Helge



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.