vivekj2004
asked on
TSQL joining tables on different servers
Can we join 2 tables on two different servers on 2 different databases?
These 2 databases need 2 different connectionStrings for connection.
These 2 databases need 2 different connectionStrings for connection.
ASKER
what is this linked server. Can I get some sample code or screen-shots (even some link will do), that is good for explaining this.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Links can be accessed by me also. I was looking for some personal examples, describing remote servers names, how to install drivers and so on.
You'd need a linked server to Server2 and then you can query all the tables in Server2 as follows:
Select * from Server2.myDataBase.owner.m
And you can use it to join the tables as well..