Re: losing sysadmin
From: Anand (anonymous_at_discussions.microsoft.com)
Date: 11/12/03
- Previous message: Hari: "Re: losing sysadmin"
- In reply to: Hari: "Re: losing sysadmin"
- Next in thread: Anand: "Re: losing sysadmin (Thanks)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 12 Nov 2003 02:54:43 -0800
Thanks Hari,
>-----Original Message-----
>Hi,
>
>You can edit the registry key ( This key will vary
slightly for a default
>instance of SQL server)
>
>\\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL
>Server\HARISQL\MSSQLServer
>
>Change the value for LoginMode key to 2 (Mixed mode).
This will allow you to
>login as SA.
>
>
>Thanks
>Hari
>MCDBA
>
>"Anand" <anand_r@linuxmail.org> wrote in message
>news:0c8b01c3a8d7$7bf3b4f0$a101280a@phx.gbl...
>> Hello All,
>>
>> I was just experimenting this.
>>
>> 1)My SQL Server is in Mixed Authentication Mode.
>> 2)I register my server using SQL Authentication (sa
login)
>> 3)I revoked the sysadmin role from
BUILTIN/Administrators
>> using
>>
sp_dropsrvrolemember 'BUILTIN/Administrators' , 'sysadmin'
>> 4)Now I changed the Mixed Authentication Mode to Windows
>> Only Authentication Mode
>> 5)I deleted the server registration and re-registered
>> using Windows Authentication
>>
>>
>> Now the problem is that I can't create a new login, I
>> can't see/change the properties of a login because
>> now I don't have a sysadmin role. I can't even change
>> the Windows Authentication mode back to Mixed Mode,
>> because that also require a sysadmin role. So after
>> struggling a lot I finally reinstalled the instance and
>> now everything is working fine.
>>
>> My question is whether there is a workaround for this
>> other than reinstalling.
>>
>>
>> Thanks in advance
>>
>> Anand
>>
>>
>
>
>.
>
- Previous message: Hari: "Re: losing sysadmin"
- In reply to: Hari: "Re: losing sysadmin"
- Next in thread: Anand: "Re: losing sysadmin (Thanks)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|