Update target button is disabled after schema comparison

后端 未结 11 1072
一向
一向 2020-12-09 14:37

I have created database project using VS 2012. Once the schema comparison is done, the update target button should be enabled to sync with target.

But it\'s not get

相关标签:
11条回答
  • 2020-12-09 15:23

    And after all, when you have the available Update Target button and the disabled Generate Script button.

    See if your source is a database and your target is your SSDT project.

    If so then click "Switch source and target" button.

    The Generate Script button will become available.
    I.e. a SSDT project must be the source and a database must be the target in the Schema Compare window.

    0 讨论(0)
  • 2020-12-09 15:25

    the everytime you open the "options" on "schema comparison" you must click on "compare" button again to activate the "update" button. However if it doesn't work at the first time, just close and reopen the Schema comparison file again.

    0 讨论(0)
  • 2020-12-09 15:28

    Check in Error List if you have any error, I have a non recognized word in VS (but it does in SQL Server), I commented it out, re-compared and it was enabled successfully.

    0 讨论(0)
  • 2020-12-09 15:28

    For me, there were no errors visible in the Error List. This was because I had the "Show Issues Generated" drop down was set to "Build Only"; changing it to "Build + IntelliSense" allowed me to see the SQL errors that needed to be fixed to enable the Generate Script and Update buttons.

    0 讨论(0)
  • 2020-12-09 15:29

    I couldn't see any errors in Error List, but I could see the errors in the Output tab

    0 讨论(0)
提交回复
热议问题