Re: losing sysadmin
From: Hari (hari_prasad_k_at_hotmail.com)
Date: 11/12/03
- Next message: Anand: "Re: losing sysadmin"
- Previous message: Richard Waymire [MSFT]: "Re: Secure SQL Server 2000 Communication"
- In reply to: Anand: "losing sysadmin"
- Next in thread: Anand: "Re: losing sysadmin"
- Reply: Anand: "Re: losing sysadmin"
- Reply: Anand: "Re: losing sysadmin (Thanks)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 12 Nov 2003 15:55:17 +0530
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
>
>
- Next message: Anand: "Re: losing sysadmin"
- Previous message: Richard Waymire [MSFT]: "Re: Secure SQL Server 2000 Communication"
- In reply to: Anand: "losing sysadmin"
- Next in thread: Anand: "Re: losing sysadmin"
- Reply: Anand: "Re: losing sysadmin"
- Reply: Anand: "Re: losing sysadmin (Thanks)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|