C#与数据库的连接问题,app.config的代码如下,登入系统是弹出错误,请问怎么改,谢谢
<?xmlversion="1.0"encoding="utf-8"?><configuration><configSections></configSections><...
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
</configSections>
<connectionStrings>
<add name="工资管理系统.Properties.Settings.msdbConnectionString" connectionString="Data Source=WWW-DDE99BB9A74\SQLEXPRESS;Initial Catalog=msdb;Integrated Security=True"
providerName="System.Data.SqlClient" />
<add name="工资管理系统.Properties.Settings.dbvsConnectionString" connectionString="Data Source=WWW-DDE99BB9A74\SQLEXPRESS;Initial Catalog=dbvs;Integrated Security=True"
providerName="System.Data.SqlClient" />
<add name="工资管理系统.Properties.Settings.gzglConnectionString" connectionString="Data Source=WWW-DDE99BB9A74\SQLEXPRESS;Initial Catalog=gzgl;Integrated Security=True"
providerName="System.Data.SqlClient" />
<add name="工资管理系统.Properties.Settings.GZGL_DATA_MDFConnectionString"
connectionString="Data Source=8FAF72D2C03D405\SQLEXPRESS;Initial Catalog=GZGL_DATA.MDF;Integrated Security=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
</configuration>
弹出的错误的对话框——在与SQL server建立链接时出现于网络相关或特定于实例的错误。未找到或无法访问服务器。请验证实例名称是否正确并且SQL server已配置为允许远程链接。 展开
<configuration>
<configSections>
</configSections>
<connectionStrings>
<add name="工资管理系统.Properties.Settings.msdbConnectionString" connectionString="Data Source=WWW-DDE99BB9A74\SQLEXPRESS;Initial Catalog=msdb;Integrated Security=True"
providerName="System.Data.SqlClient" />
<add name="工资管理系统.Properties.Settings.dbvsConnectionString" connectionString="Data Source=WWW-DDE99BB9A74\SQLEXPRESS;Initial Catalog=dbvs;Integrated Security=True"
providerName="System.Data.SqlClient" />
<add name="工资管理系统.Properties.Settings.gzglConnectionString" connectionString="Data Source=WWW-DDE99BB9A74\SQLEXPRESS;Initial Catalog=gzgl;Integrated Security=True"
providerName="System.Data.SqlClient" />
<add name="工资管理系统.Properties.Settings.GZGL_DATA_MDFConnectionString"
connectionString="Data Source=8FAF72D2C03D405\SQLEXPRESS;Initial Catalog=GZGL_DATA.MDF;Integrated Security=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
</configuration>
弹出的错误的对话框——在与SQL server建立链接时出现于网络相关或特定于实例的错误。未找到或无法访问服务器。请验证实例名称是否正确并且SQL server已配置为允许远程链接。 展开
若以下回答无法解决问题,邀请你更新回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询