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)
 Joins between two databases in MS-SQL server 2000

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2007-02-21 : 07:44:48
Dheeraj writes "
 
Hi
I've fetch data between two databases. How can i create Join between two databases.Joins between two databases in MS-SQL server 2000.

Ex.
Databse Table Fields
------------------------------------------------
DB1 T1 ID,Name
-------------------------------------------------
DB2 T2 ID,Name,JobType
-------------------------------------------------

Relation between. condition > T1.id=T2.id

"

mwjdavidson
Aged Yak Warrior

735 Posts

Posted - 2007-02-21 : 08:04:34
[code]SELECT ...
FROM DB1.dbo.T1 AS T1
JOIN DB2.dbo.T2 AS T2
ON T1.ID = T2.ID
[/code]

Mark
Go to Top of Page
   

- Advertisement -