Share via

How to reset Local Database

StorTropolis - Tiffany Springs 0 Reputation points
2026-03-13T14:59:56.87+00:00

My computer is saying local data base must be reset

SQL Server Database Engine

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2026-03-13T15:00:09.02+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    "Local database must be reset" usually indicates that the SQL Server LocalDB instance or its configuration is corrupted.

    For LocalDB, the documented action is to fix or delete the corrupted instance and recreate it:

    1. Check for corruption message
      • Look in the Windows Application log for events from SQL Server Local Database Runtime with text like:
        • Local Database instance is corrupted. See the Windows Application log for error details.
    2. Delete the corrupted LocalDB instance
      • Open a command prompt or PowerShell as Administrator.
      • List LocalDB instances:
        • sqllocaldb info
      • For the instance that is reported as corrupted (for example MSSQLLocalDB), stop and delete it:
        • sqllocaldb stop MSSQLLocalDB (ignore errors if it is not running)
        • sqllocaldb delete MSSQLLocalDB
    3. Recreate the LocalDB instance
      • Still in the elevated command prompt/PowerShell, recreate and start the instance:
        • sqllocaldb create MSSQLLocalDB
        • sqllocaldb start MSSQLLocalDB
      • Verify it:
        • sqllocaldb info MSSQLLocalDB

    If the corruption is tied to a specific product (for example Microsoft Entra Connect or another app that installs its own LocalDB instance), follow that product’s guidance to remove any corrupt LocalDB files and registry entries, then reinstall LocalDB and recreate the instance before reinstalling the product.

    If the instance configuration is so damaged that it cannot be repaired, deleting and recreating the instance is the supported recovery path.


    References:

    0 comments No comments

Your answer

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