''sa'' login failure

  • When I log into sql 2005 using the "sa" account I get this error message

    >>

    Cannot connect to myPC\sql2005

    Additional informaiton: Login failed for user 'sa'. The user is not associated with a trusted SQL Server connection. [CLIENT: <local machine>]

    >>>>

     

    Any idea what's wrong?

     

    TIA,

     

    Bill

     

  • Default installation is windows only authentication *thank Bill*

  • >> Default installation is windows only authentication

    I tried to change it to suuport both Windows and Sql. I found that I could have one or the other, per sever, but not both. Can this be true?

     

    TIA,

     

    Bill

     

  • Hi Bill!

    Not sure how you've tried to change the  authentication mode, but if you go to Management Studio and right click over a server there should be two options on the Security window - one for Windows Authentication and one for SQL Server and Windows Authentication. 

    Cath 

  • You really don't want to enable SQL authentication anyway or use the sa account - grant a windows group access and add your windows account to it.

  • >> You really don't want to enable SQL authentication anyway or

     

    Correct, but on some of our sql 2000 servers we have users accessing the same database via Sql authenticaiton and other by Windows authentication. I'm saying that, from what I see in sql 2005, it's either one way or the other. We can not have both types of authentication active in the same database at the same time. Is this correct?

  • Sure you can. The authentication type is set on the server level, not on the database level. It could be Windows Only or Mixed (both Windows and SQL Server)

    Regards,Yelena Varsha

  • i am using both types of authentication.

    the problem you are having could be because you are on a different subnet mask.ask your sys admin or network guys.


    Everything you can imagine is real.

  • To clarify:

    Windows authentication is ALWAYS enabled.

    The authentcation mode options are whether you allow SQL authentication or not.

  • Joseph's point is correct.

    I just tested on my server.before i had security set to both, and then I set it to windows authentication only and had to restart it.when i tried to logon as as 'sa' i got your error.

    so you might want to change the security to sql and windows authentication


    Everything you can imagine is real.

Viewing 10 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic. Login to reply