question

Mrs_Fatherjack avatar image
Mrs_Fatherjack asked

Permission Issue

I have just been given another SQL Server to manage. The person who installed it and used it has left, they were outside the IT team and none of us even knew the server existed. I can RDP to the server but have no permission on the SQL Server instance, however I need to somehow get into the database. Obviously the security is doing what it's meant to do and what I'm trying to do goes against everything but does anyone know any way at all that I can get into the database when no one has permission.
securitypermissions
5 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

ThomasRushton avatar image ThomasRushton ♦♦ commented ·
3 Likes 3 ·
ThomasRushton avatar image ThomasRushton ♦♦ commented ·
are you a member of the server local administrators group?
1 Like 1 ·
Mrs_Fatherjack avatar image Mrs_Fatherjack commented ·
I should be, yes I think so.
0 Likes 0 ·
JohnM avatar image JohnM commented ·
What version of SQL Server are you running?
0 Likes 0 ·
Mrs_Fatherjack avatar image Mrs_Fatherjack commented ·
SQL Server 2012
0 Likes 0 ·

1 Answer

·
perrywhittle avatar image
perrywhittle answered
you'll need to shut the instance down and then start it in single user mode with your account having membership of the local administrators group on the Windows server. This will automatically grant you sysadmin inside the instance. You may then create a login for yourself and grant your account sysadmin. You then stop the instance and restart the service normally, you should then be able to login. There are various guides around that will help you gain sysadmin control
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Mrs_Fatherjack avatar image Mrs_Fatherjack commented ·
Thank you everyone for all the help. In the end someone found the sa password!
2 Likes 2 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.