Connect to Linked Server Database using Azure Data Factory

Keren Osler 60 Reputation points
2024-05-02T09:28:02.6766667+00:00

Hi!

I have a database that is a linked server of another. I can connect and copy data of the main database in ADF. But is it possible to also copy data from the linked server database? If yes, how would I do this?

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,623 questions
SQL Server Other
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2024-05-03T06:33:44.53+00:00

    Hi @Keren Osler,

    Thanks for your information.

    Please check out this article, it provides you methods in detail to copy data from linked server.

    Hope this can help you well.

    User's image

    Best regards,

    Lucy Chen


    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.

    https://docs.microsoft.com/en-us/answers/support/email-notifications

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Zahid Butt 961 Reputation points
    2024-05-02T13:33:39.0566667+00:00

    Hi,

    Yes you may copy data through linked server, provided the security user being used in linked server has permissions on the required database.

    Connect to your SQL server instance, in object explorer Server objects-->Linked servers-->Right click on target linked server and select properties. In server options tab, data access option should be true.

    Then you may query like (copied from copilot):

    SELECT * INTO TargetDB.dbo.TargetTable
    FROM [LinkedServer].SourceDB.dbo.SourceTable
    

    Regards,

    Zahid

    0 comments No comments

  2. AnnuKumari-MSFT 34,551 Reputation points Microsoft Employee Moderator
    2024-05-06T05:22:48.4333333+00:00

    Hi Keren Osler ,

    I understand that you are trying to know if there is any possibility to connect to linked server database using Azure data factory or not.

    In order to connect to any SQL database using ADF, we require :

    • Server domain
    • Database name
    • User Name
    • Password

    In case you find these properties in linked server database, you are good to connect it via ADF linked service.

    User's image

    Hope it helps. Kindly accept the answer by clicking on Accept answer button. Thankyou

    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.