Analyzing database schema takes hours

前端 未结 10 1746
星月不相逢
星月不相逢 2021-02-01 15:21

Using a new SQL2005 database project in VS2010. I did import objects and settings, and built the project. It seems to be stuck at \'Analyzing database schema. Your database pro

相关标签:
10条回答
  • 2021-02-01 15:43

    According to the release notes of the March 2013 update of SQL Server Data-Tier Application Framework, this bug should be fixed now.

    Database Project in Visual Studio hangs on “Analyzing Database Schema…” This release addresses an issue that can occur when loading or building large Database Projects. In some cases, the operation would never finish. This is a functional fix, not a performance enhancement - even with the fix, the time to complete this operation depends on the size and complexity of your project

    http://blogs.msdn.com/b/ssdt/archive/2013/03/06/sql-server-data-tier-application-framework-march-2013-available.aspx

    http://www.microsoft.com/en-us/download/details.aspx?id=36842

    0 讨论(0)
  • 2021-02-01 15:46

    If the SSDT project is not something that you use all the time (like in my case), you can Unload the project, and leaved it unloaded. This way opening the solution in Visual Studio takes no time.

    When you need to do something in the SSDT project, at that time you can Reload the project.

    0 讨论(0)
  • 2021-02-01 15:46

    For this case, if you wouldn't include it (sql files) in project build, choose option "Not In Build" when creating file(s) or change sql file property Build = "None". That will make changes against .sqlproj file and visual studio restart required.

    That fixed for me and saved my life!

    0 讨论(0)
  • 2021-02-01 15:51

    Try closing Visual Studio and deleting the .vs folder in the root of your solution.

    (VS just recreates it next time you run it, though you may need to set your Startup Project again).

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