Skip to content

Instantly share code, notes, and snippets.

@lydonchandra
Forked from hanssens/LocalDB Reset
Last active May 13, 2024 18:33
Show Gist options
  • Save lydonchandra/f597af84e3264bc73726 to your computer and use it in GitHub Desktop.
Save lydonchandra/f597af84e3264bc73726 to your computer and use it in GitHub Desktop.
Reset SQL's LocalDB, after corrupt rights or other problems.
# After problems with a company-wide ActiveDirectory shaker, all (local) SQL Server instances were FUBAR.
# This 'resets' the LocalDB sql instance.
sqllocaldb stop MSSQLLocalDB -k
sqllocaldb delete MSSQLLocalDB
sqllocaldb create MSSQLLocalDB
sqllocaldb start MSSQLLocalDB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment