Hi,
I have two different databases in our company for diffrent departments. for some reason i need to connect few tables to another database.So i created tables in the other database which i need to link. If anybody know to link the table i m very greatful.
Thanks
imt
Are these databases reside on the same SQL Server? If yes, than you don't have to "link" tables, just use them :). For example, you have a
table1 in
database1 and you want to join it to
table2 in
database2. Than you can use the following script:
- select *
-
from table1 t1 inner join database2..table2 t2 on t1.ID = t2.ID