I cannot connect to the SQL Server instance if I do not start management studio as a administrator. I am running windows 7, SQL Server 2008, and Management Studio 10.0. If I run as a normal user, the error I get is:
Cannot connect to ..
Additional information: login failed for user 'COMPUTERNAME\MyUserName'. (Microsoft SQL Server, Error 18456)
for server name I have tried the following:
.
localhost
COMPUTERNAME
Edit: SOLUTION HERE
https://serverfault.com/questions/130434/how-do-i-login-to-sql-server-without-having-to-use-run-as-administrator-when-st
Check how your SQL server authentication is configured. Most probably you have a login defined only for
BUILTIN\Administrators, but don’t have one forBUILTIN\Usersor for you Windows account.Add a new login for
BUILTIN\Usersor your Windows account (LOCAL_MACHINE\MedicineMan:-)) and map the proper access rights. If you want to do DB admin rights, you should add login for your account. If you want just regular DB read/write, you can go forBUILTIN\Users.