dbTalk Databases Forums  

SSIS: HTML Table to Database table

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


Discuss SSIS: HTML Table to Database table in the microsoft.public.sqlserver.dts forum.



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

Default SSIS: HTML Table to Database table - 03-31-2009 , 10:10 PM






Hi,

I have a url to an html table that contains a table. The HTML table
structure is well defined. I need to grab data from the html table and
upload it to my database table every night.

I prefer using SSIS. Can I use a HTTP connection to do that?

Thank you,


Reply With Quote
  #2  
Old   
Charles Wang [MSFT]
 
Posts: n/a

Default RE: SSIS: HTML Table to Database table - 04-01-2009 , 03:54 AM






Hi Max,
Welcome to Microsoft MSDN Managed Newsgroup Services.

I understand that you would like to if you can use a HTTP connection to
grab data from a HTML page via URL.
If I have misunderstood, please let me know.

Unfortunately you cannot. HTTP connection is only used for sending
(uploading) or receiving (downloading) files via HTTP. You can refer to
http://msdn.microsoft.com/en-us/library/ms186988.aspx.

For your requirement, you may consider using Script Task to write some .NET
code to access the web page via HttpWebRequest and extract part of the
table in XML and parse the XML snippet into a dataset and then transfer the
data into the your database table. You may refer to the following articles:
http://msdn.microsoft.com/en-us/libr...est.haverespon
se(VS.80).aspx
http://msdn.microsoft.com/en-us/library/bb463974.aspx
http://www.codeguru.com/columns/dotn...php/c11141__2/

Hope this helps! Thank you!

Best regards,
Charles Wang
Microsoft Online Community Support
================================================== =======
Delighting our customers is our #1 priority. We welcome your
comments and suggestions about how we can improve the
support we provide to you. Please feel free to let my manager
know what you think of the level of service provided. You can
send feedback directly to my manager at: msdnmg (AT) microsoft (DOT) com.
================================================== =======
This posting is provided "AS IS" with no warranties, and confers no rights.
================================================== =======




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.