December 16th, 2003, 5:37 am
In Oracle, it is quite easy to do this - Create a DB Link from one database to another. This can be done with SQL navigator or any GUI like TOAD,etc. Then use the tablename + DB link name within the query.eg.,There are 2 database - DB1 and DB2.Create a DBLINK on DB1, for connecting to DB2. Name this mydb_DB2.Then on DB1, run a query likeselect * from table1, table2@mydb_DB2where......I don't know the equivalent in SQL server, but I guess there could be similar thing with a different name.Hope it helps.Good luck!
Last edited by
asd on December 15th, 2003, 11:00 pm, edited 1 time in total.