Joining 2 Different SQL Server databases

strider

Well-known member
Joined
Sep 20, 2004
Messages
52
Location
Dublin, Ireland
Programming Experience
1-3
Hi There,
is it possible to join 2 tables where each table is from a different database.
i have an msde database which i need to join a table inside a sqlserver 2000 database.
 
DTS = overkill in this case, even more so if it's for a one-off query.... are they on the same server at least? ... hmmm, I see from your OP that they are not.

First thing is to make sure that the username & password that you are using to connect to the two databases are the same. Make sure that user also has the proper permissions.

To get to a table in a different database on a different server, use the following construct:

Server.database.dbo.table (the dbo is going to be litteraly dbo, unless the table has a specific owner (not dbo) in which case it needs to be that username.

Tg
 
Back
Top