简体   繁体   中英

SQL Schema Compare from one SQL version to another not working

In Visual Studio (2013 or 2015, they both do the same) > SQL Schema Compare, I am trying to copy the schema from one database on sql 2008, to databases on sql 2014. From 2008 -> 2008 works fine, 2014->2014 works fine, but when trying to go from 2008->2014, it does not work. After running the compare and hitting update it just sits on "Schema Compare generate script (db1 > db2) until it eventually freezes and visual studio just says it is busy, and never finishes. I can not find a log that explains what point it gets stuck on either.

Under options I have tried to ignore compatibility issues but this does not fix it. Any suggestions?

That might be a schema compare bug. I'd suggest first ensuring that you're using the latest version of the SQL Server tools (available for download here: https://msdn.microsoft.com/en-us/library/mt204009.aspx )

Then, if the problem still persists, I'd suggest capturing a trace log using the below instructions and opening a Connect issue that describes the problem and includes the trace log at https://connect.microsoft.com/SQLServer/feedback/CreateFeedback.aspx using the category "Developer Tools (SSDT, BIDS, etc.)"

Gathering an Event Log for SSDT

  • Open a new command prompt as Administrator.
  • Run this command logman create trace -n DacFxDebug -p "Microsoft-SQLServerDataTools" 0x800 -o "%LOCALAPPDATA%\\DacFxDebug.etl" -ets
  • Then run this command: logman create trace -n SSDTDebug -p "Microsoft-SQLServerDataToolsVS" 0x800 -o "%LOCALAPPDATA%\\SSDTDebug.etl" -ets
  • Run SSDT and reproduce the issue.
  • Go back to the command prompt and run the following commands: logman stop DacFxDebug -ets logman stop SSDTDebug -ets
  • The resulting ETL files will be located at %LOCALAPPDATA%\\SSDTDebug.etl & %LOCALAPPDATA%\\DacFxDebug.etl.

不要点击“更新”,而是尝试“生成脚本”,然后在目标数据库上运行脚本。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM