Re: Newbie to T-SQL
From: Jacco Schalkwijk (jacco.please.reply_at_to.newsgroups.mvps.org.invalid)
Date: 07/16/04
- Next message: Narayana Vyas Kondreddi: "Re: chained rows"
- Previous message: Narayana Vyas Kondreddi: "Re: Newbie to T-SQL"
- In reply to: Sorin Sandu: "Newbie to T-SQL"
- Next in thread: Sorin Sandu: "Re: Newbie to T-SQL"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 16 Jul 2004 10:31:31 +0100
Yes. You have to qualify your tables with the database name and the owner:
SELECT t1.column1, t2.column2
FROM db1.dbo.table1 t1
INNER JOIN db2.dbo.table2 t2
ON t1.<primary key> = t2.<primary key>
-- Jacco Schalkwijk SQL Server MVP "Sorin Sandu" <ssandu@bizland.ro.invalid> wrote in message news:eQxjYXxaEHA.4036@TK2MSFTNGP11.phx.gbl... > Is it posible to make an SELECT over 2 databases ? How ? > >
- Next message: Narayana Vyas Kondreddi: "Re: chained rows"
- Previous message: Narayana Vyas Kondreddi: "Re: Newbie to T-SQL"
- In reply to: Sorin Sandu: "Newbie to T-SQL"
- Next in thread: Sorin Sandu: "Re: Newbie to T-SQL"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|