Re: combining data on different sevvers



Yes, quite possible. Subject to the security on both servers allowing such action.

Syntax is somewhat like this:

SELECT
a.Column1
, a.Column2
, b.Column5
, b.Column6
FROM Server1.MyDatabase.dbo.MyTable a
JOIN Server2.OtherDatabase.dbo.OtherTable b
ON a.KeyColumn = b.KeyColumn
WHERE ( a.CriteriaColumn = CriteriaA
AND b.CriteraColumn = CriteriaB
)


--
Arnie Rowland, Ph.D.
Westwood Consulting, Inc

Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous


"Charles MacLean" <charlesmaclean@xxxxxxxxxxxxx> wrote in message news:XIGCg.9735$gY6.3907@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I need to combine data from two different tables on two MS SQL servers
running on the same LAN into a single SELECT or VIEW. Is this possible and
what would the syntax look like?

Thanks,
Charles
MTS, Inc.



Relevant Pages

  • Re: Event ID 1030 & 1058
    ... is the syntax correct and can I do this while still in production mode? ... A few days ago I restarted both servers by restarting the PDC>> first ... >> Policy objects. ...
    (microsoft.public.windows.group_policy)
  • Re: copying to multiple servers
    ... I don't understand the syntax, ... >> We have one test web server and 3 production servers. ... >> the corresponding folder on the other three servers. ... >> and have the batch file identify the current directory and copy it to the ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Re: Arrays of zero length
    ... than syntax, there is no "funniness" about whether or not it is ... my first.last at org.domain| experience comes from bad judgment. ... Prev by Date: ...
    (comp.lang.fortran)
  • Re: netsh and Interface Names
    ... If your servers have a single network adapter then it should ... be sufficient to use this syntax: ... netsh interface ip set address local static 192.168.44.111 255.255.255.0 ...
    (microsoft.public.win2000.networking)
  • Re: What happened to www.e30zone.net?
    ... that can't spell maintenance ... ... Given the syntax used, me thinks they will be offline for a while. ... servers are finally upgraded :-) ...
    (alt.autos.bmw)

Loading