<add name="DataModel" connectionString="data source=iZ25i7k61adZ;initial catalog=Parkpedia;Integrated Security=SSPI;" providerName="System.Data.SqlClient" />
c# Web.config中,连接数据库 windows连接数据库
Integrated Security 身份验证方式 如果你没有那一句的话,就必须在联接字符串里写上uid=sa;password=00; 否则你不能打开数据库
<add name="DataModel" connectionString="data source=iZ25i7k61adZ;initial catalog=Parkpedia;Integrated Security=SSPI;" providerName="System.Data.SqlClient" />