Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1523
  • Last Modified:

Login Failed using SQL Server Authentication and Windows Authentication??

I have just installed SQL Server 2005 Evaluation on a Windows Vista Home Premium PC.  I downloaded the application and Service Packs for SQL Server 2005 and Visual Studio 2005.  I would like to have SQL Server configured with the Mixed Mode for login (Windows and SQL Server Authentication).  

When ever I try to login using either modes, I get the following error ...

Login failed for user 'sa'. The user is not associated with a trusted SQL Server connection. (Microsoft SQL Server, Error: 18452)


Is there a way correct this error and possible set/reset/check the login modes.

Thanks,

ET

0
Eric Sherman
Asked:
Eric Sherman
  • 7
  • 3
  • 2
  • +1
1 Solution
 
NorushCommented:
This is probably caused by trying to connect to SQL Server when SQL Server is not configured for Mixed Mode authentication.
0
 
NorushCommented:
Login as Local Administrator to your machine (SQL Server instance machine) and login to SQL Server instance using windows authentication.

(a) Then change the Authenticaiton mode to SQL Server and WIndows (mixed mode)

(b) Enable SA Login

(c) Restart the service
0
 
Eric ShermanAccountant/DeveloperAuthor Commented:
Norush ....

I've been trying to login as you described to no avail.

I am local administrator and when I get to the SQL Server Prompt I select windows authentication then the error pops up.  I can't logon using windows or sql server authentication.

ET
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
Eric ShermanAccountant/DeveloperAuthor Commented:
If I switch to login prompt to SQL Server Authentication then the following error pops up ...

Login failed for user 'sa'. The user is not associated with a trusted SQL Server connection. (Microsoft SQL Server, Error: 18452)


ET
0
 
ScottyNewSuitsCommented:
0
 
BrandonGalderisiCommented:
Login failed for user 'sa'. The user is not associated with a trusted SQL Server connection. (Microsoft SQL Server, Error: 18452)

means that SQL is setup for windows only auth which is the default

when you launch SSMS, right click > run as administrator > login with windows auth

it will work.
0
 
Eric ShermanAccountant/DeveloperAuthor Commented:
Thanks Brandon ...  That seems to allow me to login using Windows Auth.  How can I change it to Mixed Mode (Windows & SQL Server Auth)??  When I go under Security I have a choice of one or the other, not both.

ET
0
 
Eric ShermanAccountant/DeveloperAuthor Commented:
Ignore the previous question ...  The second option allows for both (Windows & SQL Server auth).  I just did not read it completely.

ET
0
 
BrandonGalderisiCommented:
Mixed mode = windows and SQL
0
 
Eric ShermanAccountant/DeveloperAuthor Commented:
>>>>when you launch SSMS, right click > run as administrator > login with windows auth<<<<

Is there a way to default the login as administrator or will I have to manuall right click it each time???

ET
0
 
BrandonGalderisiCommented:
Welcome to Vista user access control :).  I think it's a worthwhile sacrafice.  PERHAPS you can create a shortcut that has an "always as admin" property, but that would be a vista thing and I don't have vista in front of me right now.  So look at shortcut vista options is I guess what I'm saying
0
 
Eric ShermanAccountant/DeveloperAuthor Commented:
Ok thanks and much appreciated.

I've been bouncing back and forth over the past few weeks between Windows XP and Vista.  My Vista machine had to go in for a repair and I was working on an XP machine to complete some development work.  Now that you mentioned it, I do remember when I first installed SQL Server on my Vista machine I was running it as Administrator from the Start Menu.  

You've answered my question.

ET
0
 
Eric ShermanAccountant/DeveloperAuthor Commented:
Thanks!!!!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 7
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now