MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Is there any way to compare db2 structures

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
jimmy_augustine
Beginner


Joined: 23 Jun 2004
Posts: 32
Topics: 13

PostPosted: Mon Feb 06, 2006 6:17 am    Post subject: Is there any way to compare db2 structures Reply with quote

Hi,
Is there any way to compare a set of table structures against another set of table structures?
For example, we are in a process of synchronizing production database to the test database. Therefore, we need to know if the test tables are declared exactly same as the production tables including indexes...


Thanks
My lady
Back to top
View user's profile Send private message
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Mon Feb 06, 2006 6:31 am    Post subject: Reply with quote

Run the following query against each of your tables, and compare the output.
Code:
 SELECT NAME, COLTYPE, LENGTH, SCALE                 
   FROM "SYSIBM".SYSCOLUMNS                         
   WHERE TBCREATOR = 'creator' AND TBNAME = 'table' ;


O.
________
buy easy vape
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group