Way to provide access to data in sqlserver via an API

Greg Booth 1,316 Reputation points
2022-02-16T09:54:45.607+00:00

Hi
We need to expose some data in SQL server to a third party org who are outside our firewall. (We do have a VPN over a private circuit though).
We could allow them to connect to the sql box via firewall rules, or export data to files and push these to an SFTP server for them to download.
However we were wondering of there is a way to expose data in SQL via a restful API, without having to do too much additional work.

Is there an option to allow access to data in a sql database via an API without too much work/expense ?
Thanks

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,639 questions
{count} votes

Accepted answer
  1. Olaf Helper 43,901 Reputation points
    2022-02-16T10:02:32.737+00:00

    SQL Server do not have a build-in API like REST or SOAP, you would have to create your own API.


2 additional answers

Sort by: Most helpful
  1. Greg Booth 1,316 Reputation points
    2022-02-16T11:33:59.167+00:00

    Thanks Olaf - do you know what the best microsoft toolset to do that with is ?


  2. Seeya Xi-MSFT 16,461 Reputation points
    2022-02-17T03:11:25.503+00:00

    Hi @Greg Booth ,

    Welcome to Microsoft Q&A!
    Please read this article which may give you some help.
    https://www.mssqltips.com/sqlservertip/6803/build-secure-sql-server-rest-api-minutes/

    Best regards,
    Seeya


    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.


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.