Click here to Skip to main content
15,883,705 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Gents,
I have installed Sqlserver 2005 and management studio also.
i can login in SQL server 2005 using windows authentication but i m not able to get login using 'sa' even i have already enables 'sa' in SQL server and changed its passowrd also. after changing password even i restarted service also but no use.
One thing i have noticed that even i have changed password but once i re-open SQL server 'sa' properties then that changed password is not there but its showing password with different (default) length of characters.

i m getting error 'Login failed for user 'sa'. user is not associated with trusted SQL server connection. Erro 18452'

thanks
Posted
Updated 31-Mar-11 0:44am
v2
Comments
Wild-Programmer 31-Mar-11 6:44am    
Did you install SQL server using the mixed mode authentication???
usmanmughal 31-Mar-11 7:21am    
Actually i have installed visual studio .net 2005 and then i installed management studio. i dont remember about mixed mode that this option wqas there or not.

open SQL Server Management Studio Express and log in as a local administrator with a trusted connection...

navigate to the Security->Logins node of the Object Browser and select the sa login... rx click-->Properties.... in the Status tab verify the Login is Enabled property has been set.
 
Share this answer
 
Comments
Tarun.K.S 31-Mar-11 7:13am    
Good answer.
[no name] 31-Mar-11 9:53am    
Thanks Tarun.
You need to ensure that the server is in Mixed Authentication Mode:

  1. In SQL Server Management Studio Object Explorer, right-click the server, and then click Properties.
  2. On the Security page, under Server authentication, select the new server authentication mode, and then click OK.
  3. In the SQL Server Management Studio dialog box, click OK to acknowledge the requirement to restart SQL Server.


Instructions lifted from here[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900