连接数据库(有多个可连接时)
时间:2007-06-25 来源:chenqiubite
<configuration>
<appSettings>
<add key="ConnStr" value="Persist Security Info=False;Data Source=localhost\RIACH;Initial Catalog=cms;User ID=cms;Password=cms;" /> <!--<add key="ConnStr" value="Persist Security Info=False;Data Source=127.0.0.1;Initial Catalog=cms;User ID=cms;Password=cms;" />-->
<!--<add key="ConnStr" value="server=(local);database=cms;uid=cms;pwd=cms"/>-->
</appSettings> </configuration> 注意红色的注释部分
<appSettings>
<add key="ConnStr" value="Persist Security Info=False;Data Source=localhost\RIACH;Initial Catalog=cms;User ID=cms;Password=cms;" /> <!--<add key="ConnStr" value="Persist Security Info=False;Data Source=127.0.0.1;Initial Catalog=cms;User ID=cms;Password=cms;" />-->
<!--<add key="ConnStr" value="server=(local);database=cms;uid=cms;pwd=cms"/>-->
</appSettings> </configuration> 注意红色的注释部分
相关阅读 更多 +