Database project first build taking long time and not able to build

Prassin Babu 1 Reputation point
2021-11-03T06:26:36.117+00:00

I have created a new database project for my large application using visual studio 2019. There are more than 6k object belongs to the database. When I trying to build the project it is taking long time and not able to build. There is any build errors in the project file. The DB project created under TFS. I have updated the statistics for the system tables and unchecked Auto Created statistics and Auto Update statistics under Project property operational tab but still not getting done the build. Can someone please help me to solve this problem??

Azure SQL Database
{count} votes

1 answer

Sort by: Most helpful
  1. Oblio 51 Reputation points
    2022-03-10T19:30:01.747+00:00

    I've also had this problem. I created a new project based on an existing database. Opening the project in VS2019 leads it to hang at the "will be ready" phase and consumes so much system resources that I have to close VS.

    Other notes:

    • I have installed VS2022 and experience the same issue.
    • I've installed the VS Code extension "SQL Server" and the project hangs during "Building the project model" step.
    • Apparently, the VS Pro subscription does not include support for this. I can only speculate it's because it depends on SSDT in the background.

    Overall, it appears the MS's tools in this area are an absolute failure and this bug has been around for almost a decade.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.