ASP.NET程序访问MS SQL的方法
1、集成Windows身份认证
<connectionStrings>
<add name="NorthwindConnectionString" connectionString="Data Source=ALFRED;Initial Catalog=Northwind;Integrated Security=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
2、使用MS SQL的用户身份进行认证
<connectionStrings>
<add name="NorthwindConnectionString" connectionString="Data Source=ALFRED;Initial Catalog=Northwind;Integrated Security=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
2、使用MS SQL的用户身份进行认证