This is a discussion on beginner: "Login failed for user 'sa'." within the SQL Server forums, part of the Microsoft SQL Server category; --> Hello, (sorry for my English...) Could you help me with a SQL Server 2005 problem? I had installed SQL ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hello, (sorry for my English...) Could you help me with a SQL Server 2005 problem? I had installed SQL Server 2005 and then I tried to setup some application using SQL Server. Unfortunatelly setup fails because the application cannot logon to SQL Server in SQL Server Authentication mode (user 'sa', password 'sa'). I checked Server Management Studio Express: I have sa/sa account (because I've prepared it), but although I can logon in Windows Authentication mode, I cannot logon in SQL Server Authentication (sa/sa) because of: Login failed for user 'sa'. The user is not associated with a trusted SQL Server connection (Microsoft SQL Server, Error: 18452). Could you help me plase? I suspect that solution is simple but my experience is not enough. Thank you very much. /RAM |
| |||
| |
| ||||
| Andrzej Magdziarz (andrzej.magdziarz@wp.pl) writes: > Could you help me with a SQL Server 2005 problem? I had installed SQL > Server 2005 and then I tried to setup some application using SQL Server. > Unfortunatelly setup fails because the application cannot logon to SQL > Server in SQL Server Authentication mode (user 'sa', password 'sa'). That is not a very good password. :-) > I checked Server Management Studio Express: I have sa/sa account > (because I've prepared it), but although I can logon in Windows > Authentication mode, I cannot logon in SQL Server Authentication (sa/sa) > because of: > > Login failed for user 'sa'. The user is not associated with a trusted SQL > Server connection (Microsoft SQL Server, Error: 18452). > > Could you help me plase? I suspect that solution is simple but my > experience is not enough. By default, SQL Server accepts only logins through Windows authentication, and you must explicitly permit SQL authentication. Your first chance to so is during setup, but you can also do this from Mgmt Studio. Right-click the server itself in the Object Explorer, select Properies and then find the Security page. -- Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se Books Online for SQL Server 2005 at http://www.microsoft.com/technet/pro...ads/books.mspx Books Online for SQL Server 2000 at http://www.microsoft.com/sql/prodinf...ons/books.mspx |