r/DatabaseHelp • u/PascalsBadger • May 10 '20
Can't query linked server
I have a database that I can successfully query a linked server. I have a remote user for the sever. When it tries to query the linked server, it fails. When the remote user right clicks and tests the linked server, it says it is connected. What am I doing wrong?
Edit: SOLVED! I had tried linked the server twice on the remote connection in two different spots... Once I dropped the linked server in the wrong spot, it worked. Thank you everyone
3
Upvotes
View all comments
Show parent comment
1
u/PascalsBadger May 11 '20 edited May 11 '20
Whoops! SQL Server 2017 is what I am using.
I'm getting error message: Msg 10061 TCP Provider: No connection could be made because the target machine actively refused it.