Lost acces to sqlexpress

d.o.m.i.n.i.k 1 Reputation point
2021-12-14T08:31:08.563+00:00

I have a problem with permmisions. IN company we must changed our computer name and settings after migration to active directory. But I forget that my old PC name is admin in sql express. And I do not know sa password becouse in time of instalation I didn´t care of it and also dont have set option login by username and pass only win authentication. Now is the problem I can log in into server but Í cannot do anything even select. I try to add sysadmin to new PC but it always tells me you do not have permission. DO you have any idea how to get into this server or atleast get some backup of DB

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories

0 comments No comments

2 answers

Sort by: Newest
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    2 deleted comments

    Comments have been turned off. Learn more

  2. Olaf Helper 47,631 Reputation points
    2021-12-14T09:16:30.513+00:00

    If you have local Windows admin permissions, then you can fix it on your own (restore backup wouldn't help)
    See Connect to SQL Server when system administrators are locked out

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.