SQL to SharePoint Online

sns 9,246 Reputation points
2022-06-21T12:07:30.923+00:00

We have migrated from on premises to SharePoint online, user wants now to set up connection between SQL server and SharePoint online.
User tried to connect using existing process of connecting SQL to SP 2013, but he is facing authentication issue.

is it possible to connect SQL to SharePoint online , Please suggest.

Microsoft 365 and Office | SharePoint | For business | Windows
{count} votes

Accepted answer
  1. Emily Du-MSFT 51,836 Reputation points Microsoft External Staff
    2022-06-22T07:42:15.413+00:00

    @sns

    Here're some methods.

    1.Conenct SQL Server Database with Azure SQL Server Database.

    https://social.technet.microsoft.com/wiki/contents/articles/28286.office-365-sharepoint-online-bcs-with-azure-sql-server-database.aspx

    2.Build an Azure provider hosted app using Hybrid Connections.

    https://asishpadhy.com/2018/01/19/getting-on-premises-data-from-sql-to-sharepoint-online-using-azure-hybrid-connections/

    3.Use WCF services collaborating with Business Connectivity Services (BCS):

    (1)Azure Web App hosting WCF Service and External Lists

    (2)Azure Web App hosting WCF Data Service and Hosted Apps

    https://learn.microsoft.com/en-us/dotnet/framework/wcf/feature-details/how-to-create-a-basic-wcf-web-http-service

    Reference:https://www.peters.com/blog/exposing-sql-data-sharepoint-online/

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


    If the answer is helpful, 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 additional answers

Sort by: Most helpful

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.