默认数据库连接字符串在app.config配置文件中修改
<?xmlversion="1.0"encoding="utf-8"?><configuration><connectionStrings><addname="conSt...
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<connectionStrings>
<add name="conStr" connectionString="Data Source=.\SQL2005;Initial Catalog=JXC;User ID=sa;pwd=sasasa"/>
</connectionStrings>
<appSettings>
<add key="conStr" value="Data Source=.\SQL2005;Initial Catalog=JXC;User ID=sa;pwd=sasasa"/>
</appSettings>
</configuration> 展开
<configuration>
<connectionStrings>
<add name="conStr" connectionString="Data Source=.\SQL2005;Initial Catalog=JXC;User ID=sa;pwd=sasasa"/>
</connectionStrings>
<appSettings>
<add key="conStr" value="Data Source=.\SQL2005;Initial Catalog=JXC;User ID=sa;pwd=sasasa"/>
</appSettings>
</configuration> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询