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
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:
It was tested using SQL Server 2005 + 2008 , and it works successfully.