If you are running SQL 7 or higher, you can run queries against linked servers. See sp_addlinkedserver in SQL BOL.
Example: Find records on local server table that don't exist on remote table.
Select l.*
-- local server
From dbname.dbo.tblname l
-- remote server with 4-part object name
Left Join server2.dbname.dbo.tblname r
On l.RecID=r.RecID
Where r.RecID Is Null Terry L. Broadbent
FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.