dbTalk Databases Forums  

[SQL] Compare two Data bases Structure

mailing.database.pgsql-sql mailing.database.pgsql-sql


Discuss [SQL] Compare two Data bases Structure in the mailing.database.pgsql-sql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
manuel antonio ochoa
 
Posts: n/a

Default [SQL] Compare two Data bases Structure - 02-23-2011 , 06:03 PM






How Can I do to compare two structures of data bases ?

DBA != DBB I need wich functions and wich tables are not equals

thnks

Reply With Quote
  #2  
Old   
Plugge, Joe R.
 
Posts: n/a

Default Re: [SQL] Compare two Data bases Structure - 02-23-2011 , 06:09 PM






Check out DB Solo ...

http://www.dbsolo.com/


Does both DDL compare as well as data compare.


________________________________
From: pgsql-sql-owner (AT) postgresql (DOT) org [pgsql-sql-owner (AT) postgresql (DOT) org] On Behalf Of manuel antonio ochoa [manuel8aalfaro (AT) gmail (DOT) com]
Sent: Wednesday, February 23, 2011 6:03 PM
To: pgsql-sql (AT) postgresql (DOT) org
Subject: [SQL] Compare two Data bases Structure

How Can I do to compare two structures of data bases ?

DBA != DBB I need wich functions and wich tables are not equals

thnks



--
Sent via pgsql-sql mailing list (pgsql-sql (AT) postgresql (DOT) org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql

Reply With Quote
  #3  
Old   
Piotr Czekalski
 
Posts: n/a

Default Re: [SQL] Compare two Data bases Structure - 02-24-2011 , 03:18 AM



W dniu 2011-02-24 01:03, manuel antonio ochoa pisze:
Quote:
How Can I do to compare two structures of data bases ?

DBA != DBB I need wich functions and wich tables are not equals

thnks


I'd advise SQL Power Architect - very handy tool with graphical DB
design capability.
Will compare your databases and even generate suitable SQL script on
demand, updating older database to look as a new one (or oposite).
This tool is also able to compare project vs database or database vs
generation script.
Supports not only PostgreSQL but many other databases.

It is Java based solution.

http://www.sqlpower.ca

Regards,

Piotr

P.S. AFAIK release 0.9.15 was free of charge for personal use.

--

--------------------------------------------------------------
"TECHBAZA.PL" Sp. z o.o.
Technologie WEB, eDB& eCommerce
OddziaƂ Gliwice
ul. Chorzowska 50
44-100 Gliwice
tel. (+4832) 7186081
fax. (+4832) 7003289



--
Sent via pgsql-sql mailing list (pgsql-sql (AT) postgresql (DOT) org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql

Reply With Quote
  #4  
Old   
Vibhor Kumar
 
Posts: n/a

Default Re: [SQL] Compare two Data bases Structure - 02-24-2011 , 04:02 AM



On Feb 24, 2011, at 5:33 AM, manuel antonio ochoa wrote:

Quote:
How Can I do to compare two structures of data bases ?

DBA != DBB I need wich functions and wich tables are not equals

thnks
You can try with apgdiff.
http://apgdiff.startnet.biz/

Thanks & Regards,
Vibhor

--
Sent via pgsql-sql mailing list (pgsql-sql (AT) postgresql (DOT) org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql

Reply With Quote
  #5  
Old   
Isaac Dover
 
Posts: n/a

Default Re: [SQL] Compare two Data bases Structure - 02-24-2011 , 07:48 AM



As an alternative to the other tools - I've had luck using a simple query
that uses information schema.
Quote:
How Can I do to compare two structures of data bases ?

DBA != DBB I need wich functions and wich tables are not equals

thnks

Reply With Quote
  #6  
Old   
Isaac Dover
 
Posts: n/a

Default Re: [SQL] Compare two Data bases Structure - 02-24-2011 , 04:51 PM



Select from information_schema.columns and full outer join it again on the
table and column names, then just look for nulls on either side. You'll need
to alias the left and right views differently. I'm assuming that the dbs are
next to each other in the same installation. Once the base query is working,
you can filter further on the column types. It's pretty simple as long as
you understand joins.

On Thu, Feb 24, 2011 at 10:30 AM, manuel antonio ochoa <
manuel8aalfaro (AT) gmail (DOT) com> wrote:

Quote:
How can I do that ? I dont know how to use the query !! ?


2011/2/24 Isaac Dover <isaacdover (AT) gmail (DOT) com

As an alternative to the other tools - I've had luck using a simple query
that uses information schema.
How Can I do to compare two structures of data bases ?

DBA != DBB I need wich functions and wich tables are not equals

thnks



Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.