0

Somewhere recently I read of a method to connect one SQL Server to another, so clients could connect and run queries that appeared to come only from the first server. I cannot remember the proper terminology for this technique, and Google searches have not helped. I thought it was called "external connection", or "external source", but I cannot find this again.

Have I remembered correctly, and can someone give me an overview how to do this..?

To explain further, my preferred SQL client DBeaver only allows one connection in each query. As such, if I wish to join tables from two different servers, there's no direct way to do it...except perhaps this method which I can't remember how to do.

2

2 Answers 2

1

Take a look at the linked server in MsSQL.

https://www.sqlshack.com/how-to-create-and-configure-a-linked-server-in-sql-server-management-studio/

https://learn.microsoft.com/en-us/sql/relational-databases/linked-servers/create-linked-servers-sql-server-database-engine?view=sql-server-ver15

Sign up to request clarification or add additional context in comments.

2 Comments

That's it! Thanks!
It was my pleasure! :)
0

Use DBVisualizer instead of Dbeaver, if you are on Linux.

3 Comments

Sorry, not on Linux.
This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review
DBVisualizer on Windows displays linked servers too

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.