Database schema analysis continuously in progress for a database project in Visual Studio

pmscorca 1,007 Reputation points
2024-01-13T18:20:37.2333333+00:00

Hi, I'm developing a database project with Visual Studio 2022 and SSDT extension. After some scripts created I've noticed that Visual Studio runs more slowly because a database schema analysis is in progress, reading the message shown in the status bar: the database projects are ready after the completion of some thousands of operations. Is it possible to disable a such analysis at design time in order to work in Visual Studio without any slowdowns? Thanks

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,205 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,016 questions
Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
228 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Tianyu Sun-MSFT 31,326 Reputation points Microsoft Vendor
    2024-01-15T09:13:45.02+00:00

    Hello @pmscorca ,

    Welcome to Microsoft Q&A forum.

    Do these three settings work(Disable code analysis - .NET Framework projects)? Please right-click you project > Unload Project > right-click it again > Edit Project File > add three lines into one of the property groups > right-click your project > Reload Project.

    Besides, please try to right-click your project > Properties > Project Settings > uncheck Validate casing on identifiers option.

    Other options maybe also work: right-click your project > Properties > Project Settings > Database Settings… > Operational > uncheck Auto create statistics and Auto update statistics options. Refer to documents: AUTO_CREATE_STATISTICS option, and AUTO_UPDATE_STATISTICS option.

    BTW, database schema analysis runs by default, it has reasons. Actually, I don’t suggest changing/unchecking some specific options. If it’s very slow on your side, you may send feedback here: SQL or here: Developer Community - Visual Studio.

    Sincerely,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

  2. Pinaki Ghatak 4,685 Reputation points Microsoft Employee
    2024-01-13T18:31:28.4133333+00:00

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.