Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / General / Security / April 2006

Tip: Looking for answers? Try searching our database.

What do you do when no one has sysadmin rights?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mbgrood - 26 Apr 2006 21:35 GMT
We have an installation of SQL Server 2005 that allows windows
authentication only.  None of our windows users have been explicitly
granted sysadmin rights, but my understanding was that if you are a
member of the windows administrator group you will automatically have
sysadmin rights to sql server.  This does not appear to be the case.
Is there a way to get our sysadmin rights back or will we have to do a
re-installation?

Thanks!

Michelle
David Browne - 26 Apr 2006 23:06 GMT
> We have an installation of SQL Server 2005 that allows windows
> authentication only.  None of our windows users have been explicitly
[quoted text clipped - 3 lines]
> Is there a way to get our sysadmin rights back or will we have to do a
> re-installation?

Restart the instance in single user mode (which only a local admin can do).

http://msdn2.microsoft.com/en-us/library/ms180965.aspx

Then log in as a local admin and you will magically be a sysadmin.

Re-add builtin\administrators login and give it the sysadmin server role and
restart the server in normal mode.

David
Mike Hodgson - 27 Apr 2006 00:30 GMT
Really?  So the login behaviour changes in single-user mode (even if the
BUILTIN\Administrators login has previously been dropped)?  I didn't
know that.  I'll have to try it out.  Thanks for the info.  (I wonder if
there's something you can do with DAC to get around that "no sysadmin"
issue.)

--
*mike hodgson*
http://sqlnerd.blogspot.com

>  
>
[quoted text clipped - 20 lines]
>
>  
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.