Answer the question
In order to leave comments, you need to log in
How to perform a join on the linked server side?
Hello gentlemen.
It is necessary to join two tables, and one of them is located on a different server.
Sample example:
SELECT c.id AS card_id
, cmo.SaleID AS sale_user_name
, c.vin
FROM dbo.Cards AS c
INNER JOIN SQL11.Clients.dbo.cmOrders AS cmo
ON cmo.VIN = c.vin
WHERE(cmo.id =(SELECT MAX(id)
FROM SQL11.Clients.dbo.cmOrders AS cmo2
WHERE (VIN = c.vin)))
Answer the question
In order to leave comments, you need to log in
use REMOTE in INNER JOIN
technet.microsoft.com/en-us/library/ms173815.aspx
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question