Ask a questionAsk a question
 

AnswerDatabase schema comparing automation.

  • Friday, March 30, 2007 12:10 PMKen8 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello,

    Could you, please, specify whether it is possible to automate Schema Compare tool in DBPro
    somehow?

    I am asking it because currently third-party tool is used in our build environment in order to compare two live databases and produce synchronization SQL script. This tool is executed from command prompt with appropriate options and works fine with Microsoft SQL Server 2000 (execution from command prompt is used in order to automate this process by means of task scheduler).

    In next release of our product we are going to migrate to Microsoft SQL Server 2005 and unfortunately that third-party tool is unable to operate with it (company which is responsible for that third-party tool is not going to develop new version for Microsoft SQL Server 2005).


    That's why we have to search for replacement.

    Using native Microsoft product sounds good, but looks like we will be unable to automate the process in this case.
    Am I right?

Answers

All Replies

  • Friday, March 30, 2007 3:43 PMcra451 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    What kid of automation are you looking for? there is  'build/deploy' automation but do you want to automate the 'checkin'?

     

  • Friday, March 30, 2007 3:56 PMKen8 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    We want to compare two databases, create synchronization SQL-script and pack it into patch installer.


    Currently synchronization script is created automatically using command-line third-party tool in our build environment. But we are not able to use the same process for MS SQL 2005 because of reasons mentioned in my original message.

  • Friday, March 30, 2007 4:58 PMcra451 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    I spent a little time today looking for this and could not find anything out of the box that would do this.

     

    Maybe One of the MSFT guys has something.

     

    But as far as i got was maybe adding a MSBuild Customization. or calling the code directly by building an assembly. but either one looks like a more involved process than click and go....

     

    If you can get the schema as a file then you can use the tools here http://msdn2.microsoft.com/en-us/vstudio/aa718351.aspx  to check it in and be able to execute ths as part of a process.

     

    Maybe it will we be part of the next version.

     

    As another note can you change your process a little? Lets think about this since each dev can have his her own version of the db it can be checked in like any other code. Builds/versions can be preformed as part of the check in instead of the Nightly Automation.

     

    anyway best of luck....

     

    cra451

      

     

     

     

     

  • Monday, April 02, 2007 2:14 AMGert DrapersMSFTUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    We will make a Schema and Data Compare MSBuild task available as part of the PowerTools for VSDBPro.

    -GertD

  • Monday, April 02, 2007 2:26 AMcra451 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    GertD

     

    That would be great. You and your teams hard work is appreceated.

     

    cra451