I can not connect to my Local SQL Server 2005 in C# code,
it throws the error,
The user is not associated with a trusted SQL Server connection.
i tried to change the mode to Mixed Mode, but i don't see it, I see only Windows and SQL Server Auth mode,
i tried to change to SQL Server Mode, but none of user log will work, it says, this login is not in trusted connection,
so i would make any login associated with trusted account.
Thanks,
I have covered how to choose both Windows and SQL authentication in SQL Server in the thread below but if you are getting this error in a web application then the problem is not SQL Server but IIS. In IIS Deny anonymous users and in your Web.Config enable impersonation. Hope this helps.
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1894423&SiteID=1
|||"Mixed mode" = "SQL Server and Windows authentication mode"
Maybe you are trying to login using a SQL Login when your authentication is Windows only? Perhaps you need to change your connections string:
Windows Auth
integrated secruity=true
SQL Auth
integrated security=false; uid=user;pwd=pword
HTH!
|||Thanks for your reply, but i followed the steps, when I change it to SQLServer Authentication mode, it ask for log info, I put SA account, but it gives this error,
SA is not associated with Trusted Account.
Also I don't see the Security page as well as Mixed Mode option when i go to Server properties.
(On the Security page, under Server authentication, select the new server authentication mode, and then click OK)
Any idea,
Thanks,|||
Where are you trying to change the authentication? Open SSMS, right click your servername in Object Explorer, click properties. Down the left hand side you should have a list of pages including the security one where you need to make these changes.
Is this not what you see? Are you using Management Studio? What version of SQL Server is it?
i found it and changed it but still i get an error when I try to connect to Database Engine using that sa account that i enabled it,
1) A connection was succesfully established with the server, but then an error occured during the login process. (provider: shared memory Provider, error: 0 - No process is on the other end of the pipe)(MSSql Server , Error:233)
2) from asp.net code, i get error like , sa is not in trusted connection list.
any idea,
Thanks,|||
I think you'll need to get yourself back to the SQL Configuration Manager and perhaps enable named pipes? I did a quick search on google for: "No process is on the other end of the pipe" and there were a fair few resources. Have a look there and let us know how you get on.
Good luck!
|||No you need to enable the SA account before you try to use it and error 233 is covered in the link below and you need to reboot the box after you make all these changes. I have also seen error 233 related to certificates not installed in SQL Server. Hope this helps.
http://blogs.msdn.com/sql_protocols/archive/2006/07/26/678596.aspx
No comments:
Post a Comment