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

pmscorca 1,052 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

Developer technologies Visual Studio Extensions
Developer technologies Visual Studio Other
SQL Server Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,436 Reputation points Microsoft External Staff
    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 5,600 Reputation points Microsoft Employee Volunteer Moderator
    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.