Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Join to a table in another database on a different server

Status
Not open for further replies.

coolmoe

IS-IT--Management
Sep 9, 2002
8
US
am looking at reference a sql server database from a separate sql server database.
server 'a' has table 'tbl_cars'
server 'b' has table 'tbl_colors'

i wish in a stored procedure for example to link from server 'a' to tbl_colors in server 'b'. also, there is a login and password to get to the other server.





 
have you tried using a linked server or dts to get the data?

The more I learn the more I find I know nothing.

Rob
 
Look up "linked servers" in Books Online. Once you have one set up you can query it bu using fully-qualified object names:

Code:
SELECT * FROM server.database.owner.table

--James
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top