Re: Connextion Error After Installing SQL Server 2005 on Vista
- From: "Bob Bryan" <RobertGBryanREMOVETHIS@xxxxxxx>
- Date: Wed, 20 Aug 2008 09:06:29 -0700
Hi Rick,
Your suggestion of right clicking and running as an admin worked perfectly. Thanks very much for the info. I clicked on the link you listed, but do not quite understand something. In Management Studio, under Security/Logins there are 6 accounts listed:
1. Bob-PC\SQLServer2005MSFTEUser$BOB-PC$MSSQLSERVER
2. Bob-PC\SQLServer2005MSSQLUser$BOB-PC$MSSQLSERVER
3. Bob-PC\SQLServer2005SQLAgentUser$BOB-PC$MSSQLSERVER
4. BUILTIN\Administrators
5. NT AUTHORITY\SYSTEM
6. sa
I right clicked the first login above and selected Properties. It did not have any admin privs under Server Roles. So, I added sysadmin privs for this login. All the other logins already had sysadmin selected. When I exited and tried to restart, this time without right clicking and selecting "run as admin", it failed to connect again. So, can you tell me what the first 3 logins are used for and if I need to create a new login, then what should be the exact name of that login?
Thanks again for your help.
Bob Bryan
"Rick Byham, (MSFT)" <rickbyh@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:E2BEF355-D50A-4329-BF9B-99853A5876DF@xxxxxxxxxxxxxxxx
You are probably trying to connect as Bob using your membership in the computers local administrators group; the BUILTIN\ADMINISTRATORS group being a member of the sysadmin fixed server role in SQL Server. But Vista User Account Control (UAC) doesn't automatically pass your administrator credentials to programs. The solution is to explicitly grant Bob access to SQL Server.
Right-click Management Studio and click Run as Administrator (passing your admin credentials). Then, if this was your problem you will be able to connect. Add Bob as a login and as a sysadmin.
From now on you can connect without using your administrator credentials.
For more info: http://msdn.microsoft.com/en-us/library/bb326612.aspx
--
Rick Byham (MSFT), SQL Server Books Online
This posting is provided "AS IS" with no warranties, and confers no rights.
"Bob Bryan" <RobertGBryanREMOVETHIS@xxxxxxx> wrote in message news:RcTqk.23542$LF2.22284@xxxxxxxxxxxxxxxI just installed SQL Server 2005 on my Vista (SP1) laptop. I also successfully installed SQL Server SP2 for Vista. When going into SQL Server Management Studio and connection to the default instance of the server that was just installed, the following error is generated in the log file:
2008-08-20 03:09:55.36 Logon Error: 18456, Severity: 14, State: 11.
2008-08-20 03:09:55.36 Logon Login failed for user 'Bob-PC\Bob'. [CLIENT: <local machine>]
During the installation, I was prompted a couple of times to install a service pack for Visual Studio 2005, which is not currently installed. Visual Studio 2008 with Beta SP1 is installed. Using the Surface Area Configuration tool, the Database engine component, SQL Server Agent, Full-Text Search, and SQL Server Browser are all running.
SQL Server 2008 was installed on this machine previously, but since there were similar problems with connecting, I tried to un-install it, but not all of the components were completely removed. I have now spent at least 10 hours trying to get this to work and am about to give up and try another database. I never had any problems installing or connecting to SQL Server 2005 with Windows XP. Can anyone offer any helpful suggestions?
Thanks,
Bob Bryan
.
- Follow-Ups:
- Re: Connextion Error After Installing SQL Server 2005 on Vista
- From: Rick Byham, \(MSFT\)
- Re: Connextion Error After Installing SQL Server 2005 on Vista
- References:
- Connextion Error After Installing SQL Server 2005 on Vista
- From: Bob Bryan
- Re: Connextion Error After Installing SQL Server 2005 on Vista
- From: Rick Byham, \(MSFT\)
- Connextion Error After Installing SQL Server 2005 on Vista
- Prev by Date: Re: a question about unable to connect to local sql server
- Next by Date: Re: a question about unable to connect to local sql server
- Previous by thread: Re: Connextion Error After Installing SQL Server 2005 on Vista
- Next by thread: Re: Connextion Error After Installing SQL Server 2005 on Vista
- Index(es):
Relevant Pages
|