从C#Web应用程序登录SQL Server失败
我在SQL Server上创建了一个用户,但使用该登录名我收到以下消息:从C#Web应用程序登录SQL Server失败,c#,sql,sql-server-2005,C#,Sql,Sql Server 2005,我在SQL Server上创建了一个用户,但使用该登录名我收到以下消息: Login failed for user ''. The user is not associated with a trusted SQL Server connection. [SqlException (0x80131904): Login failed for user ''. The user is not associated with a trusted SQL Server connection.] 这
Login failed for user ''. The user is not associated with a trusted SQL Server connection.
[SqlException (0x80131904): Login failed for user ''. The user is not associated with a trusted SQL Server connection.]
这是我的连接字符串:
<connectionStrings>
<remove name="LocalSqlServer"/>
<add name="LocalSqlServer" connectionString="Server=SRV-02;Initial Catalog=OCIS_logins;Integrated Security=True;user id=TEST;password=test" providerName="System.Data.SqlClient"/>
</connectionStrings>
我很抱歉这个可能的错误问题,但我通常没有任何与SQL server管理
我希望你能帮助我
Steve将集成安全性=真更改为集成安全性=假将此网站添加书签,它有各种各样的示例 这是针对SQLServer2005的 所以你的情况应该是这样的
connectionString="Server=SRV-02;Initial Catalog=OCIS_logins;user id=TEST;password=test" providerName="System.Data.SqlClient"
越来越近了。现在,我收到一条不同的消息:无法打开登录请求的数据库“OCIS_logins”。登录失败。用户“OCIS”登录失败。谢谢你的快速帮助。非常感谢你的链接,我会把它加入书签。这里的样品不适合我。