Is it possible to change the user account of the localdb instance in SQL Server? We changed our domain and it is using my old domain account so I can no longer login anymore. Also, I don't believe that you can login with SQL auth, so the sa account doesn't work, I tried that. I am using both SQL Server 2014 and 2016.
If it is a local DB and you are totally locked out you will probably have to uninstall and reinstall. When you uninstall your data and log files should be left in the original location. After you reinstall you can Attach the files to the new instance of the server. If this is a machine used by everyone in the business someone should be able to login with elevated privileges and set you up with what you need.
Here is an example of how to reattach database files.
Directly changing the user account of a LocalDB instance in SQL Server to align with a new domain is not inherently simple due to LocalDB's reliance on Windows Authentication,
excluding the use of SQL Server Authentication by default. This limitation renders the sa
account unusable for access purposes. Nevertheless,
there are practical measures you can undertake to recover access and possibly modify the Windows account linked to the LocalDB instance.
© 2022 - 2024 — McMap. All rights reserved.