Get data from an html page into DB SQL Server

Ricardo Anselmo Oliveira 101 Reputation points
2022-01-17T15:48:55.76+00:00

Hello everyone,

I was wondering if it's possible to get data from an html page and load it to a DB (Postgres, SQL Server) directly. If it's impossible to do it directly, which is the best way or easiest one to do it?

What i want to get and store, is the release date from the first column of the page https://sqlserverupdates.com/sql-server-2016-updates/

TY for ur time :D

SQL Server Other
0 comments No comments
{count} votes

Accepted answer
  1. AmeliaGu-MSFT 14,006 Reputation points Microsoft External Staff
    2022-01-18T07:08:03.517+00:00

    Hi RicardoAnselmoOliveira-7430,

    Please take a look at the following articles which might help:
    https://www.red-gate.com/simple-talk/databases/sql-server/learn/how-to-import-data-from-html-pages/
    https://www.c-sharpcorner.com/article/data-scraping-from-a-website-and-save-to-sql-server-using-uipath-rpa/

    Best Regards,
    Amelia


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Olaf Helper 47,436 Reputation points
    2022-01-18T07:01:55.847+00:00

    It should be possible, e.g. with a .NET application using Html Agility Pack (HAP) to parse the web page to get the data from the HTML table; but it's nothing you could solve directly on MS SQL Server side.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.