|
sql
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
sa not workingI installed SQL Express in a silent install using the following: SQLEXPR.EXE /qb addlocal=all instancename=SQLExpress SAPWD=MyPwd Disablenetworkprotocols = 0 SQLAUTOSTART=1 The install works just the way I want it to. But when I try to connect to it using ADO.NET or from sqlcmd -U sa -P MyPwd -S MyServer\SQLExpress I receive the following Error: Login failed for user 'sa'. The user is not associated with a trusted SQL Server connection. To fix the problem I have tried: ALTER LOGIN sa ENABLED; GO ALTER LOGIN sa WITH PASSWORD = 'MyPwd'; GO This did not work either, Please help, Thanks, Chuck you SQL server security is Windows Authentication mode?
If you want connect use sql login, the security mode sould be SQL Server and Windows authentication mode. Login to SQL server through SSMS using windows authentication. Click on server, property, Security and check on the Server authentication mode. Cheers Show quoteHide quote "Charles A. Lackman" wrote: > Hello, > > I installed SQL Express in a silent install using the following: > > SQLEXPR.EXE /qb addlocal=all instancename=SQLExpress SAPWD=MyPwd > Disablenetworkprotocols = 0 SQLAUTOSTART=1 > > The install works just the way I want it to. > > But when I try to connect to it using ADO.NET or from sqlcmd -U sa -P > MyPwd -S MyServer\SQLExpress > > I receive the following Error: > > Login failed for user 'sa'. The user is not associated with a trusted SQL > Server connection. > > To fix the problem I have tried: > > ALTER LOGIN sa ENABLED; > GO > ALTER LOGIN sa WITH PASSWORD = 'MyPwd'; > GO > > This did not work either, > > Please help, > > Thanks, > > Chuck > > > Thanks for your reply,
How would I rewrite my Silent install to fix the problem. The computer that has this installed does not have SSMS installed. I am testing a deployment of a application and the client computers will not have that installed. Doesn't SAWPD set the install to Mixed Authentication? Chuck "soonyu" <soo***@discussions.microsoft.com> wrote in message you SQL server security is Windows Authentication mode?news:00DE8810-EB97-4001-A0C0-5BFDDB2857C6@microsoft.com... If you want connect use sql login, the security mode sould be SQL Server and Windows authentication mode. Login to SQL server through SSMS using windows authentication. Click on server, property, Security and check on the Server authentication mode. Cheers Show quoteHide quote "Charles A. Lackman" wrote: > Hello, > > I installed SQL Express in a silent install using the following: > > SQLEXPR.EXE /qb addlocal=all instancename=SQLExpress SAPWD=MyPwd > Disablenetworkprotocols = 0 SQLAUTOSTART=1 > > The install works just the way I want it to. > > But when I try to connect to it using ADO.NET or from sqlcmd -U sa -P > MyPwd -S MyServer\SQLExpress > > I receive the following Error: > > Login failed for user 'sa'. The user is not associated with a trusted SQL > Server connection. > > To fix the problem I have tried: > > ALTER LOGIN sa ENABLED; > GO > ALTER LOGIN sa WITH PASSWORD = 'MyPwd'; > GO > > This did not work either, > > Please help, > > Thanks, > > Chuck > > > hi Charles,
Charles A. Lackman wrote: > Thanks for your reply, nope... it's just a convenient way to protect sa login with a strong > > How would I rewrite my Silent install to fix the problem. The > computer that has this installed does not have SSMS installed. I am > testing a deployment of a application and the client computers will > not have that installed. > > Doesn't SAWPD set the install to Mixed Authentication? password, even in scenarios where the only available authentication is WindowsNT... as you saw from Arnie advice, it's very simple to modify that setting after installation (even if this still requires admin privileges on the target machine).. if you want to specify Mexed Authentication at installation time, you have to provide an additional parameter, SECURITYMODE=SQL, as you can see from the supported parameters list at http://msdn2.microsoft.com/en-us/library/ms144259.aspx -- Andrea Montanari (Microsoft MVP - SQL Server) http://www.asql.biz http://italy.mvps.org DbaMgr2k ver 0.20.0 - DbaMgr ver 0.64.0 and further SQL Tools --------- remove DMO to reply I believe that the default installation does not enable SQL logins.
You can either use Management Studio (Server\Properties\Security) to change the security model, or change this Registry setting: HKEY_LOCAL_MACHINE\Software\Microsoft\Microsoft Sql Server\MSSQL.1\MSSqlServer\LoginMode Change the value from 1 to 2 to enable SQL Logins See this article for more information: http://support.microsoft.com/kb/319930 -- Show quoteHide quoteArnie Rowland, Ph.D. Westwood Consulting, Inc Most good judgment comes from experience. Most experience comes from bad judgment. - Anonymous "Charles A. Lackman" <Char***@CreateItSoftware.net> wrote in message news:edFez$z8GHA.2316@TK2MSFTNGP04.phx.gbl... > Hello, > > I installed SQL Express in a silent install using the following: > > SQLEXPR.EXE /qb addlocal=all instancename=SQLExpress SAPWD=MyPwd > Disablenetworkprotocols = 0 SQLAUTOSTART=1 > > The install works just the way I want it to. > > But when I try to connect to it using ADO.NET or from sqlcmd -U sa -P > MyPwd -S MyServer\SQLExpress > > I receive the following Error: > > Login failed for user 'sa'. The user is not associated with a trusted SQL > Server connection. > > To fix the problem I have tried: > > ALTER LOGIN sa ENABLED; > GO > ALTER LOGIN sa WITH PASSWORD = 'MyPwd'; > GO > > This did not work either, > > Please help, > > Thanks, > > Chuck > > Charles
Read this article , despite they talk about MSDE 2000 I think it could be a reason for SQL Server 2005 Express Edition http://support.microsoft.com/kb/321698/ Show quoteHide quote "Charles A. Lackman" <Char***@CreateItSoftware.net> wrote in message news:edFez$z8GHA.2316@TK2MSFTNGP04.phx.gbl... > Hello, > > I installed SQL Express in a silent install using the following: > > SQLEXPR.EXE /qb addlocal=all instancename=SQLExpress SAPWD=MyPwd > Disablenetworkprotocols = 0 SQLAUTOSTART=1 > > The install works just the way I want it to. > > But when I try to connect to it using ADO.NET or from sqlcmd -U sa -P > MyPwd -S MyServer\SQLExpress > > I receive the following Error: > > Login failed for user 'sa'. The user is not associated with a trusted SQL > Server connection. > > To fix the problem I have tried: > > ALTER LOGIN sa ENABLED; > GO > ALTER LOGIN sa WITH PASSWORD = 'MyPwd'; > GO > > This did not work either, > > Please help, > > Thanks, > > Chuck > >
Downgrade sql2000 to sql7
MIN, MAX and "non-zero" functions? SQL 2005 Standard - Cannot Delete SQL Agent Job MSDTC and Win2K3 primay key SSIS replace functionality for derived column using ASCII SQL server agent - many jobs starting at the same time detach and attach VS restore from backup Restoring a database in sql 2005 Is this possible with Full Text Indexing? |
|||||||||||||||||||||||