Schema Diff Timeout issue with Visual Studio 2017

只谈情不闲聊 提交于 2019-12-23 02:07:20

问题


When perform schema diff for 2 databases with Visual Studio Pro 2017, I'm facing with issue about schema diff timeout because the database in server too large, so the result always display no differences detected.

With Visual Studio 2015, I can workaround by increasing the "QueryTimeoutSeconds" in regedit and it's working as normally. But when upgrade to Visual Studio 2017, I can't find anywhere have this value

Have anyone experiance with this issue and have any solution workaround?

My environment: - SQL Server 2017 Developer - Visual Studio 2017 Pro - SSDT 15.1.61710.120


回答1:


After more investigation, I found that in Visual Studio 2017, we can updating QueryTimeoutSeconds in regedit, but a little configuration because Visual Studio 2017 already hive the regedit.

First, please close all Visual Studio 2017 application, after that, open regedit application.

Choose HKEY_LOCAL_MACHINE, click File and choose Load Hive, and paste the link to address: %LOCALAPPDATA%\Microsoft\VisualStudio\, select 15.xxx and choose privateregistry.bin -> Click Open.

Input VS_2017_LoadHive in the appeared dialog and click OK.

Expand HKEY_LOCAL_MACHINE > VS_2017_LoadHive, and find QueryTimeoutSeconds key under SQLDB > Database, after that increased the value to 6000. After that, select File and choose Unload Hive.

Open Visual Studio 2017 again and enjoy.



来源:https://stackoverflow.com/questions/48681093/schema-diff-timeout-issue-with-visual-studio-2017

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!