Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3990804
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T06:32:20+00:00 2026-05-20T06:32:20+00:00

I have two machines , each one contains SQL Server + different instance/database +

  • 0

I have two machines , each one contains SQL Server + different instance/database + different IP/port ( as you know )

I want to load data from machine A to Machine B by executing a T-SQL procedure on B. I use Windows Authentication as authentication method.

I read about sp_addlinkedserver but I couldn’t execute it successfully .

Edit:

I hope to see an exeample of using sp_addlinkedserver with different servers that use windows authentication ads auth method

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T06:32:20+00:00Added an answer on May 20, 2026 at 6:32 am

    I found the solution 🙂 , it was related to something called Security Account Delegation and mapping a SQL server login to the linked serve

    for more information read the first answer from here.

    TSQL code:

    -- drop old things 
    -- EXEC sp_droplinkedsrvlogin myLinkedServer, null
    
    -- drop old linked server if it is there 
    -- EXEC sp_dropserver 'myLinkedServer'
    
    EXEC sp_addlinkedserver @server='myLinkedServer',
                            @srvproduct=N'',
                            @provider='SQLNCLI',
                            @datasrc='10.10.11.13', -- server ip try 10.16.11.13\Your_Instance_Name
                    @provstr='User ID=testuser;password=Aa123456' -- you can add Integrated Security=SSPI;
    
    
    -- debugging to check if the linked server is created or not 
    select * from sys.servers where name = 'myLinkedServer';
    
    -- map a SQL server login to the linked server
    EXEC sp_addlinkedsrvlogin 'myLinkedServer', 'false', NULL, 'testuser', 'Aa123456'
    
    
    
    -- display some data 
    select * from myLinkedServer.[dev_master].[dbo].[attendanceReport]
    

    It was tested using SQL Server 2005 + 2008 , and it works successfully.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two MySQL Database which are in different machines. I want to transfer
I have two machines, one running 2.4.18 and one running 2.4.20. Both run Java
I have two Postgres databases. In one I have two tables, each with about
Here is the situation: I have inherited two separate machines, one used for development
i have two delphi xe installled in different virtual machines (Running in Windows 7
I have tried on two different machines, and tried the download several times, but
Let's say I have two machines, A and B, on the public internet (not
I have two vista Business machines. I have IE 7 installed on both. On
I have a WCF client/service app that relies on secure communication between two machines
I have a buildbot with some builders and two slave machines. Some of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.