Urgent help How to enable SA account or add another login in SQL server with sysadmin permission We don't have any login with sysadmin permission no built in administrators nothing.

1 year ago 12 Replies
AG
Ankit Yogesh Garg
5 years ago

Urgent help
How to enable SA account or add another login in SQL server with sysadmin permission
We don't have any login with sysadmin permission no built in administrators nothing. Authentication is mixed mode. Only 2 logins exists in SQL server one is SA and other is AD group and none of them as sysadmin permission.
Already tried starting sqlserver in single user mode and getting error like SQL server installation is either corrupt or has been tempered with. Although we are able to bounce the services successfully.

3 Likes

Replies

Binoy Sarma 5 years ago

SA will have sysadmin permission by default, isn't it?

1 Like
Ujjwal Patel 5 years ago

You normally get it's corrupt when you are not using a correct path to the .exe file...see if you are missing the quotes when you start SQL service ..try to start with the below in CMD as admin : path -c -m "sqlcmd"...then open another CMD as admin type sqlcmd and then use reset command

2 Likes
Lohith Ks Chalam 5 years ago

If you can afford changing SA password then use psexec to change the sa password without any down time. Refer following link for more details : https://www.mssqltips.com/sqlservertip/2682/recover-access-to-a-sql-server-instance/

2 Likes
K Purnachandra Rao 5 years ago

who have installed SQL server, that account consists of sysadmin account.

0 Likes
Ankit Yogesh Garg (5 years ago)

No account is having sysadmin access

Rama Krishna 5 years ago

If you have full access on windows level it will be Very simple... Take 5min down time. Put the service in single user mode. From command prompt connect to sql Create one test login with sysadmin permission. Note: you don't have but you can able to create login on sql server if you have full access to Windows.

2 Likes
Ankit Yogesh Garg (5 years ago)

Thanks Rama for suggestions I have already tried that. It is not working because in background it looks for not authority system login which is not there in SQL. Hence it is failing in that way too.

Rama Krishna (5 years ago)

Ankit Yogesh Garg even it was not in sql also you can able to create... But you should have windows level full access

Javed Mohd 5 years ago

Do you have an account which is part of local administrator group?

0 Likes
Ankit Yogesh Garg (5 years ago)

No we don't have any local administrator group.

Javed Mohd (5 years ago)

Ankit Yogesh Garg on the windows box???

Ankit Yogesh Garg (5 years ago)

Yes.