Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Import Data from an MS OutLook Email

Status
Not open for further replies.

cricketer1

Technical User
Mar 15, 2001
76
US
I have a scenario where a single coulmn of data is coming to me in an email on MS OutLook. How can I import this data into a table directly from the email, can this be automated too.

Thanks
 
Is it in the body of the email or as an attachment?

You could do a little VBA for Outlook to parse the body of the email and insert into the database.

There are many ways to do this. You could parse the body, create a connection using ADO and then insert the parsed text.

or

Parse the text, use the FSO library and save the parsed text as a text file and build a DTS package to import the data.

It just depends on how you want to do it!

Jon
 
Thanks for your response...

yes the data is embedded in the email.

I was actually looking for a way to make a connection to MS outlook from SQL Server, both of these, outlook and sql server are on different machines.

or do you recommend somehow parsing out the data in the email to a text file and then taking it from there...I am looking to put all of this in a DTs package.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top