By mistake I deleted all logins from SQL Server 2008R (dev machine) Now I have only one login sa. When I try to connect to any database it shows me that my user does not have permission, so I can't even connect using my windows account.

How can I recover all logins?

What should I do?

I don't have a backup but I do have a production environment that is configured the same way as dev was.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.