Skip to content

Instantly share code, notes, and snippets.

@dphoebus
Forked from hanssens/LocalDB Reset
Created March 13, 2018 04:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dphoebus/5d7f8415751717cd55f5324d7cd4d37a to your computer and use it in GitHub Desktop.
Save dphoebus/5d7f8415751717cd55f5324d7cd4d37a 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 "v11.0" -k
sqllocaldb delete "v11.0"
sqllocaldb create "v11.0"
sqllocaldb start "v11.0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment