multiple connections



I have 2 connections to 2 databases (db1, db2)

The connections are fine. But when I tried to do the following statement, I
got an error:
Public db1Conn As ADODB.Connection
Public db2Conn As ADODB.Connection
Public rs As ADODB.Recordset
Set rs = db2Conn.Execute("insert into tableA@db2 (select * from tableA@db1
where name='abc')")

The error is 'ora-02019: connection description for remote database not
found.'
I think it's because when I Set rs = db2Conn.Execute... it only connects to
db2 not db1. How to fix this problem? Thanks!



.



Relevant Pages

  • Re: ToM trunk help
    ... turned to potentiometer like LTG suggested. ... checked all connections ... everything seems tight. ... Prev by Date: ...
    (rec.games.pinball)
  • RE: Submit Button
    ... >> Chris A ... > search on connections, forms, request.form, validate, add records, close ... > 'SEND DATA TO ANOTHER PAGE TO VALIDATE ... Prev by Date: ...
    (microsoft.public.scripting.vbscript)
  • Re: how do printed circuits break?
    ... Physically broken/cracked surface mount components or the solder ... connections to same. ... Rarely visible to the naked eye. ... Prev by Date: ...
    (sci.electronics.repair)
  • Re: Please post similarities between Turkic and Native American
    ... > poster might have connections to Turkey ... Birgit ... Prev by Date: ...
    (sci.lang)
  • Hitachi
    ... checked all connections, ... Hitachi Model #27CX5B mfg ... Prev by Date: ...
    (sci.electronics.repair)