dbTalk Databases Forums  

How to compare database structures?

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss How to compare database structures? in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Evgeny Gopengauz
 
Posts: n/a

Default How to compare database structures? - 07-26-2004 , 06:04 PM






Let us suppose that I have two similar databases and need to create an
sql-script upgrating one database structure to another. For example, these
databases are from different versions of some software, first is from early
version, next is from current, and second one contains several new tables,
sevelal new fields in old tables, several new or changed stored procedures,
UDFs and so on.

How to solve this problem using standard tools?



Reply With Quote
  #2  
Old   
a.b
 
Posts: n/a

Default Re: How to compare database structures? - 07-26-2004 , 10:09 PM






http://www.red-gate.com/SQL_Compare.htm




"Evgeny Gopengauz" <evgop (AT) ucs (DOT) ru> wrote

Quote:
Let us suppose that I have two similar databases and need to create an
sql-script upgrating one database structure to another. For example, these
databases are from different versions of some software, first is from
early
version, next is from current, and second one contains several new tables,
sevelal new fields in old tables, several new or changed stored
procedures,
UDFs and so on.

How to solve this problem using standard tools?





Reply With Quote
  #3  
Old   
Simon Hayes
 
Posts: n/a

Default Re: How to compare database structures? - 07-27-2004 , 02:48 AM



"Evgeny Gopengauz" <evgop (AT) ucs (DOT) ru> wrote

Quote:
Let us suppose that I have two similar databases and need to create an
sql-script upgrating one database structure to another. For example, these
databases are from different versions of some software, first is from early
version, next is from current, and second one contains several new tables,
sevelal new fields in old tables, several new or changed stored procedures,
UDFs and so on.

How to solve this problem using standard tools?
With the tools supplied with MSSQL, there's really no way to do this
easily. Most people buy a third-party tool (Red Gate, Embarcadero
etc.) to do comparisons and migrations. There are some good, cheap
tools, and unless you have lots of time and you want to re-invent the
wheel, you should probably investigate what's available.

Simon


Reply With Quote
  #4  
Old   
Evgeny Gopengauz
 
Posts: n/a

Default Re: How to compare database structures? - 07-27-2004 , 03:39 AM



Quote:
How to solve this problem using standard tools?

With the tools supplied with MSSQL, there's really no way to do this
easily. Most people buy a third-party tool (Red Gate, Embarcadero
etc.) to do comparisons and migrations. There are some good, cheap
tools, and unless you have lots of time and you want to re-invent the
wheel, you should probably investigate what's available.
Thank you! Now I guess why I have found nothing in the BOL




Reply With Quote
  #5  
Old   
Oscar Santiesteban Jr.
 
Posts: n/a

Default Re: How to compare database structures? - 07-27-2004 , 09:10 PM



The latest issue of SQL Magazine has a tool from www.apexsql.com that may
help you out.
Oscar

"Evgeny Gopengauz" <evgop (AT) ucs (DOT) ru> wrote

Quote:
Let us suppose that I have two similar databases and need to create an
sql-script upgrating one database structure to another. For example, these
databases are from different versions of some software, first is from
early
version, next is from current, and second one contains several new tables,
sevelal new fields in old tables, several new or changed stored
procedures,
UDFs and so on.

How to solve this problem using standard tools?





Reply With Quote
  #6  
Old   
fn
 
Posts: n/a

Default Re: How to compare database structures? - 07-28-2004 , 02:14 AM



In a pinch, you can always dump the structures of the two databases into
two text files and use a DIFF utility to identify the differences. No
very sexy but it gets the job done.

Farid


Evgeny Gopengauz wrote:
Quote:
Let us suppose that I have two similar databases and need to create an
sql-script upgrating one database structure to another. For example, these
databases are from different versions of some software, first is from early
version, next is from current, and second one contains several new tables,
sevelal new fields in old tables, several new or changed stored procedures,
UDFs and so on.

How to solve this problem using standard tools?




Reply With Quote
  #7  
Old   
yaniv cohen
 
Posts: n/a

Default Re: How to compare database structures? - 08-01-2004 , 04:17 AM



Hi Evgeny,



Try dbMaestro. It's a product that allows comparison, migration and
archiving of database schema and data. it is generate migration script
for different between schema and data , and you can run this script on
sql server

You can find it here:

http://www.extreme.co.il









fn <f_n_a_c_e_r_removeunderlines (AT) hotmail (DOT) com> wrote

Quote:
In a pinch, you can always dump the structures of the two databases into
two text files and use a DIFF utility to identify the differences. No
very sexy but it gets the job done.

Farid


Evgeny Gopengauz wrote:
Let us suppose that I have two similar databases and need to create an
sql-script upgrating one database structure to another. For example, these
databases are from different versions of some software, first is from early
version, next is from current, and second one contains several new tables,
sevelal new fields in old tables, several new or changed stored procedures,
UDFs and so on.

How to solve this problem using standard tools?



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.