Re: Taking Control of SQL Server Database
- From: "Nigel Ainscoe" <discussions@xxxxxxxxxxxxx>
- Date: Sun, 4 Jan 2009 17:51:46 -0000
That works. Thanks a lot Rick.
Regards,
Nigel
"Rick Byham, (MSFT)" <rickbyh@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:832DB8F2-7A31-4492-95C4-2B2A73547700@xxxxxxxxxxxxxxxx
As a Enterprise Admin, you may or may not be in the local administrators group on the computer. If so, in SQL Server 2005 the local administrators group has sysadmin permissions to the SQL Server. Unless someone has removed it to tighten security. So attempt to connect with your login. If the OS is Windows Server 2008 or Windows Vista, start SQL Server Management Studio using the Run as Administrator option so Windows will pass your admin credentials to SQL Server.
If someone has removed the local administrators from the sysadmin role by removing BUILTIN\ADMINISTRATORS from the logins, then this will fail. In that case, restart the Database Engine in single user mode. Then SQL Server will honor the local administrators group. See the Books Online topic "Troubleshooting: Connecting to SQL
Server When System Administrators Are Locked Out" http://msdn.microsoft.com/en-us/library/dd207004.aspx
This is a SQL Server 2008 topic but someone recently told me it works on SQL Server 2005 also.
--
Rick Byham (MSFT), SQL Server Books Online
This posting is provided "AS IS" with no warranties, and confers no rights.
"Nigel Ainscoe" <discussions@xxxxxxxxxxxxx> wrote in message news:A10F7A25-80CF-43C7-B3FB-AE965719A6F0@xxxxxxxxxxxxxxxxHi,
I have a SQL Server 2005 database that I do not have sysadmin credentials
for, only Public, but I need to take control of it. I.e. give myself
sysadmin. I have Enterprise Admin credentials on the domain.
Anyone know what the best/quickest way of going about this?
TIA & HNY
Nigel Ainscoe
I have also posted this in sqlserver.programming as I was not sure which would be the better group for such a question. Apologies for cross posting.
.
- Prev by Date: Re: Install BI Dev.Studio on existing sql server 2005
- Next by Date: Re: MSDN SQL 2008 Enterprise non-trial version
- Previous by thread: RE: SQLServer 2005 Tools (MSXML 6) install fails on clean XP Pro S
- Next by thread: Automatic Backup with SQL Server Express
- Index(es):
Relevant Pages
|