How Create a linked server to Dataverse from SQL Server

Marty Stev 1 Reputation point
2021-09-16T12:43:03.967+00:00

How Create a linked server to Dataverse from SQL Server ?

I would like to know if i can use linked servers to do this and what are the correct properties for the connection. 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.
12,758 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Thomas Barnouin 10 Reputation points
    2023-06-01T14:24:30.9733333+00:00

    Hello

    Do you have an other solution in 2023 ? a Microsoft solution..

    Thanks

    2 people found this answer helpful.
    0 comments No comments

  2. AmeliaGu-MSFT 13,961 Reputation points Microsoft Vendor
    2021-09-17T02:43:51.56+00:00

    Hi MartyStev-1127,

    Welcome to Microsoft Q&A.
    You can try to use this Microsoft Dataverse ODBC Driver to set up a linked server for Dataverse data. Please refer to Connect to Microsoft Dataverse Data as a Linked Server for more details.
    In addition, a SQL data connection is available on the Microsoft Dataverse endpoint. The SQL connection provides read-only access to the table data of the target Dataverse environment thereby allowing you to execute SQL queries against the Dataverse data tables. You can also use SSMS 18.4 or later with the Dataverse endpoint SQL connection. Please refer to this doc for more information.

    Best Regards,
    Amelia


    If the answer is helpful, please click "Accept Answer" and upvote it.
    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.

    1 person found this answer helpful.
    0 comments No comments

  3. Ronen Ariely 15,096 Reputation points
    2023-06-01T17:53:54.62+00:00

    Hi @Thomas Barnouin ,

    (1) Please don't use an old thread which someone else started since you cannot control it or close the thread and it it is already closed then no one will check it probably. Better option is to open a new thread and remember to close it at the end

    (2) Regarding your question, you can check this tutorial:

    https://www.cdata.com/kb/tech/dataverse-odbc-linked-server.rst

    Option two is to use a simple connection like to another SQL Server (SQL Server Native Client - SQLNCLI) but first you configure the TDS Remoting Service and connect using the port 5558

    Check this for more information:

    https://www.c-sharpcorner.com/article/how-to-query-dataverse-in-microsoft-sql-server-management-studio-ssms/

    1 person found this answer helpful.
    0 comments No comments