我已将我的连接字符串定义为::
<add name="ammyGroupConnectionString" connectionString="Data Source=ammyGroup_Server;Initial Catalog=ammyGroup_Staging;Persist Security Info=True;User ID=sa;Password=ammyGroup;" providerName="System.Data.SqlClient"/>
<add name="ammyGroupConnectionString" connectionString="Data Source=ammyGroup_Server;Initial Catalog=ammyGroup_Staging;Persist Security Info=True;User ID=sa;Password=ammyGroup;" providerName="System.Data.SqlClient"/>
现在文件中有标签,
<location allowOverride="true" inheritInChildApplications="true">
<appSettings>
<add key="DBSchema" value=/>
<add key="DBUserId" value=/>
<add key="DBPassword" value=/>
<add key="DBServerName" value=/>
<add key="DBName" value=/>
我知道钥匙
add key =&#34; DBUserId&#34;并添加key =&#34; DBPassword&#34;
是用于MS SQL SERVER的用户名和密码,但是只有Windows身份验证时 ?请解释一下。
我知道我们要做的Windows身份验证::
Trusted_Connection = Yes; Integrated Security = SSPI;
但是 appsetting 值
呢?