Core component of SQL Server for storing, processing, and securing data
"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:
- 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.
-
- Look in the Windows Application log for events from SQL Server Local Database Runtime with text like:
- 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
-
- 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
-
- Still in the elevated command prompt/PowerShell, recreate and start the instance:
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:
- LOCALDB_ERROR_INSTANCE_CONFIGURATION_CORRUPT
- Microsoft Entra Connect: How to recover from LocalDB 10-GB limit
- unable to install the synchronization service. Localdb powershell operation failed on ADSync Bootstrap service. Enable-ADSyncBootStrapLocalDBInstance. - Microsoft Q&A
- SQL Server LocalDB Crashes on Windows 11 (c0000005) — Cannot Start Instances - Microsoft Q&A
- How do I fix an SQL Server issue - Microsoft Q&A"