SQL Server驗證方式:
<configuration>Windows驗證方式:
<connectionStrings>
<add name="NorthWindConnectionString"
connectionString="Data Source=.;
Initial Catalog=NorthWind;
User ID=sa;Password=123"
providerName="System.Data.SqlClient"/>
</connectionStrings>
<configuration>
<connectionStrings>
<add name="NorthWindConnectionString"connectionString="Data Source=.;Initial Catalog=NorthWind;Integrated Security=True"providerName="System.Data.SqlClient"/></connectionStrings>
沒有留言:
張貼留言