I have a cloned a customer machine to a Virtual machine.
I had access from my code (SqlConnection) to the database through a database-Login where I could use window autentication.
I disabled my Login(I though I could enable it again).
Is there any way to enable the Login?
The solutions I found where you Grant something, all require that you are connected to the instance, but it's also not possible to connect without first a login.
If I had the sa pwd I would be able to login, but I don't know that either.
Is there any other way, I can enable my Login?
sapassword is an option, my preferred option (of the many available on that linked possible dupe) is https://docs.dbatools.io/#Reset-DbaAdmin – Peter Vandivier Mar 28 '19 at 08:10