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.
| Author |
Topic |
|
mrjack
Yak Posting Veteran
50 Posts |
Posted - 2006-06-08 : 04:32:13
|
| Hi Guys,i tried to google but cant find the ans, hope u guys can help me out.what i want to do is to use a select statement with table from other db...such asselect * from table1 a,(table from other db) bwhere a.col1=b.col1and a.col2=b.col2thanks guys.. |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2006-06-08 : 04:41:16
|
[code]select *from table1 a inner join db2..table2 bon a.col1 = b.col1and a.col2 = b.col2[/code] KH |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-06-08 : 06:00:16
|
or specify Ownerselect *from table1 a inner join db2.Owner.table2 bon a.col1 = b.col1and a.col2 = b.col2 MadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|