If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > ODBC connecting two databases

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-16-03, 23:37
ramram49 ramram49 is offline
Registered User
 
Join Date: Aug 2002
Posts: 16
Red face ODBC connecting two databases

Is it possible to connect to two different databases on a server via a single ODBC connection?

I am using a very old version of Informix and ODBC version 3.81

Thanks

Reply With Quote
  #2 (permalink)  
Old 04-24-03, 07:23
Roelwe Roelwe is offline
Registered User
 
Join Date: Aug 2002
Location: Belgium
Posts: 534
If these are two informix database servers, they can connect natively.
__________________
rws
Reply With Quote
  #3 (permalink)  
Old 04-24-03, 22:02
ramram49 ramram49 is offline
Registered User
 
Join Date: Aug 2002
Posts: 16
Quote:
Originally posted by Roelwe
If these are two informix database servers, they can connect natively.
The databases are in the same informix server. How can I connect them by one ODBC and use it via ADO?
Reply With Quote
  #4 (permalink)  
Old 04-26-03, 07:09
Roelwe Roelwe is offline
Registered User
 
Join Date: Aug 2002
Location: Belgium
Posts: 534
Connect to the server.

then do a select from database:table.

f.ex.
select * from sysmaster:systables

you can do this in any other database.
__________________
rws
Reply With Quote
  #5 (permalink)  
Old 04-28-03, 00:24
ramram49 ramram49 is offline
Registered User
 
Join Date: Aug 2002
Posts: 16
Quote:
Originally posted by Roelwe
Connect to the server.

then do a select from database:table.

f.ex.
select * from sysmaster:systables

you can do this in any other database.
It works...many many thanks.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On