How to compare database structures?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Evgeny Gopengauz

    How to compare database structures?

    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?


  • a.b

    #2
    Re: How to compare database structures?

    Try Redgate SQL Compare - compare two SQL Server databases, synchronize the differences, automate comparisons, and manage database versioning issues.





    "Evgeny Gopengauz" <evgop@ucs.ru > wrote in message
    news:ce42is$c8r $1@news.rol.ru. ..[color=blue]
    > 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?
    >
    >[/color]


    Comment

    • Simon Hayes

      #3
      Re: How to compare database structures?

      "Evgeny Gopengauz" <evgop@ucs.ru > wrote in message news:<ce42is$c8 r$1@news.rol.ru >...[color=blue]
      > 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?[/color]

      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

      Comment

      • Evgeny Gopengauz

        #4
        Re: How to compare database structures?

        > > How to solve this problem using standard tools?[color=blue]
        >
        > 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.[/color]

        Thank you! Now I guess why I have found nothing in the BOL :)


        Comment

        • Oscar Santiesteban Jr.

          #5
          Re: How to compare database structures?

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

          "Evgeny Gopengauz" <evgop@ucs.ru > wrote in message
          news:ce42is$c8r $1@news.rol.ru. ..[color=blue]
          > 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[/color]
          early[color=blue]
          > version, next is from current, and second one contains several new tables,
          > sevelal new fields in old tables, several new or changed stored[/color]
          procedures,[color=blue]
          > UDFs and so on.
          >
          > How to solve this problem using standard tools?
          >
          >[/color]


          Comment

          • fn

            #6
            Re: How to compare database structures?

            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:[color=blue]
            > 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?
            >
            >[/color]

            Comment

            • yaniv cohen

              #7
              Re: How to compare database structures?

              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:

              אקסטרים מספקת שירותים מקצה לקצה לארגונים ולמועמדים המחפשים עבודה בהייטק - שירותי טכנולוגיות מידע, מיקור חוץ והשמה להייטק. אנו מחויבים לספק ללקוחותינו פתרונות יצירתיים, חדשניים ומובילים










              fn <f_n_a_c_e_r_re moveunderlines@ hotmail.com> wrote in message news:<R7OdnW0-MNboz5rc4p2dnA@ britsys.net>...[color=blue]
              > 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:[color=green]
              > > 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?
              > >
              > >[/color][/color]

              Comment

              Working...