earlrainer
asked on
database structure compare
hi guys,
is there any way I can compare two database.
I have two databases and they were supposed to be identical, but i find that one of them is having tables not present in the other, same case with triggers etc.
does sybase have any utility that helps me compare the structure of the two databases?
is there any way I can compare two database.
I have two databases and they were supposed to be identical, but i find that one of them is having tables not present in the other, same case with triggers etc.
does sybase have any utility that helps me compare the structure of the two databases?
Heck, just compare the contents of sysobjects in the databases. All the info you need is there, and you can bcp or otherwise extract the contents to a text file.
i hope the question is not posted by my colleague!!
ok
sybase does have a utility called "sybase central" which generates DDL for entire database.
It also gives a utility called "defncopy" (may not be used for table generation alone).
Hi, you cannot get everything from sysobjects. there are lot of other system tables to be extracted from. sysobjects just gives the object names and some status bits.
get the data from the following tables:
sysobjects,syscolumns,sysi ndexes,sys comments,s ystypes,sy skeys, ---
my question to Amitpagarwal---
i have downloaded dbschema.pl from misnomer.org for Linux
but it has problem with DBLIB compilation (accepted by the
site). Do you have any suggesstion for NT env ?
thanks.
ok
sybase does have a utility called "sybase central" which generates DDL for entire database.
It also gives a utility called "defncopy" (may not be used for table generation alone).
Hi, you cannot get everything from sysobjects. there are lot of other system tables to be extracted from. sysobjects just gives the object names and some status bits.
get the data from the following tables:
sysobjects,syscolumns,sysi
my question to Amitpagarwal---
i have downloaded dbschema.pl from misnomer.org for Linux
but it has problem with DBLIB compilation (accepted by the
site). Do you have any suggesstion for NT env ?
thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
perfect.......
Thanks
Thanks
then just compare the two text files.