Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Select Data

Author  Topic 

joelseverich
Starting Member

34 Posts

Posted - 2009-03-02 : 10:16:09
Hi
How can i select data from different databases

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-03-02 : 10:19:02
are the databses on same server? if yes, just use

select columns...
from db1.owner1.table1 t1
join db2.owner2.table2 t2
....


and if they're in different server, use linked server
Go to Top of Page

shaggy
Posting Yak Master

248 Posts

Posted - 2009-03-02 : 10:23:59
seet this

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=120748
Go to Top of Page
   

- Advertisement -