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 > DB2 > Virtuell Table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-10-05, 08:34
RolfPH RolfPH is offline
Registered User
 
Join Date: Nov 2005
Posts: 4
Virtuell Table

Hello.

I have one quetsion.
Is it possible in DB2 to create a virtuell table, like in Access (shortcut to another table)?
Because we have 2 databases and need a shortcut to a table on the other db. So we need not connect to db1 disconnect db1 and connect to db2...
If you know what I mean.

Sorry my english is not the best.

Greetings from Germany.

Rolf
Reply With Quote
  #2 (permalink)  
Old 11-10-05, 09:50
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
I think what you want is known in DB2 circles is call "Federation". There is a whole manual from IBM devoted to it. Check it out.

Andy
Reply With Quote
  #3 (permalink)  
Old 11-11-05, 04:17
RolfPH RolfPH is offline
Registered User
 
Join Date: Nov 2005
Posts: 4
I will try to explain...

I have a database A and a database B .

Now I want to create in the database A a link to a table on database B.
So that we can select the table from database B on database A.

"db2 connect to A"
"db2 select * from tablefromdatabaseB*
"db2 connect reset"

Is this possible? So we neeed not to disconnect and make a new connect.

Thank you.

Rolf
Reply With Quote
  #4 (permalink)  
Old 11-11-05, 08:13
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Yes it is possible. Read the "Federation" manual.

Andy
Reply With Quote
  #5 (permalink)  
Old 11-11-05, 08:30
RolfPH RolfPH is offline
Registered User
 
Join Date: Nov 2005
Posts: 4
Thank you!

Nice weekend!
Reply With Quote
  #6 (permalink)  
Old 11-11-05, 08:40
RolfPH RolfPH is offline
Registered User
 
Join Date: Nov 2005
Posts: 4
Is it also possible when the DB2 Database is V8.1 and the other DB is SQLDS (DB2 on HOST)?

Rolf
Reply With Quote
  #7 (permalink)  
Old 11-11-05, 08:55
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
I do not know. Read the manual.

Andy
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