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 > comparision

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-30-07, 09:19
vijay_b vijay_b is offline
Registered User
 
Join Date: Sep 2007
Posts: 7
comparision

Hi all,

In one instance i had two diffrent databases , i want the distinct tables from two databases .

Example: I had one instance named db2 in that i had two databases sample1 and sample2 , so there are 10 tables in sample1 and 15 tables in sample2 . Now i want distinct tables from both the batabases. So i want to write a script for that. Please reply as soon as possible.


Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 10-30-07, 10:45
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Use DB2 federation and access the catalog views in one database from the other database via nicknames. Then you can use regular SQL to find the differences.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
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