Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / DB Engine / SQL Server / March 2008

Tip: Looking for answers? Try searching our database.

Web Leads Via Email Import

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mar - 07 Mar 2008 13:46 GMT
I receive Emails notifications for everytime someone enters their info
in our web form.  Would I be able to setup SQL Server 2000 to import
the data from that email into a SQL table?  What would the script look
like for capturing that email and executing the import?  Here's what
the email looks like:

==============
From: Tim Smith
Bussinnes: Example company
Form name: Rental Service Catalog Request (RSCR)

SQL Backup String: INSERT INTO pos_forms (post_date, post_time,
form_name, full_name, contact_title, company_name, address, city,
state, zip, email, phone, fax, comments_questions)VALUES
('02.26.2008', '11:33', 'RSCR', 'Tim Smith', 'Production Coordinator',
'Example company', '#234 Known Street', 'San Diego', 'CA', '92154',
'test@domain.com', '(858) 111-1111', '(858) 222-2222', 'Hello.  This
is a test from the comments and questions field.  Thank you')

==============

Thanks,
Tibor Karaszi - 08 Mar 2008 19:26 GMT
You might want to check out sp_processmail. It relies on SQL Mail which uses MAPI which isn't the
nicest solution in the world, I should add...

Signature

Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi

>I receive Emails notifications for everytime someone enters their info
> in our web form.  Would I be able to setup SQL Server 2000 to import
[quoted text clipped - 18 lines]
>
> Thanks,
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.