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
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Reporting against multiple DB's

Author  Topic 

wennerberg
Starting Member

2 Posts

Posted - 2004-02-18 : 13:44:08
Can I query against tables in different databases? I am not a programmer and I'm new to SQL Server-- previously worked some in Oracle where reporting against different schemas within an Oracle database instance was customary and trivial.

KIM WENNERBERG

MichaelP
Jedi Yak

2489 Posts

Posted - 2004-02-18 : 14:11:25
Yes you can!

Instead of
SELECT * FROM mytable


use
SELECT * from DatabaseName.Owner.mytable


Michael

<Yoda>Use the Search page you must. Find the answer you will.</Yoda>
Go to Top of Page
   

- Advertisement -