Discussion:
SSIS: HTML Table to Database table
(too old to reply)
Max2006
2009-04-01 03:10:05 UTC
Permalink
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,
Charles Wang [MSFT]
2009-04-01 08:54:41 UTC
Permalink
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/library/system.net.httpwebrequest.haverespon
se(VS.80).aspx
http://msdn.microsoft.com/en-us/library/bb463974.aspx
http://www.codeguru.com/columns/dotnet/article.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: ***@microsoft.com.
=========================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
=========================================================

Continue reading on narkive:
Search results for 'SSIS: HTML Table to Database table' (Questions and Answers)
5
replies
how to import an xls sheet to HTML file?
started 2008-03-23 14:25:59 UTC
programming & design
Loading...