永发信息网

sql server express改成了sql server2005后,程序调试时出错

答案:1  悬赏:10  手机版
解决时间 2021-07-19 11:35
  • 提问者网友:聂風
  • 2021-07-19 08:32

<connectionStrings>
<add name="constr" connectionString="Data Source=.\SqlExpress;uid=sa;pwd=sa;Initial Catalog=OA_DB" providerName="System.Data.Client"/>
<add name="OA_DBConnectionString" connectionString="Data Source=.\SqlExpress;Initial Catalog=OA_DB;Persist Security Info=True;User ID=sa;pwd=sa" providerName="System.Data.SqlClient"/>
<add name="OA_DBConnectionString1" connectionString="Data Source=.\SqlExpress;Initial Catalog=OA_DB;Integrated Security=True;MultipleActiveResultSets=False;Packet Size=4096;Application Name=&quot;Microsoft SQL Server Management Studio&quot;" providerName="System.Data.SqlClient"/>
<add name="OA_DBConnectionString2" connectionString="Data Source=.\SqlExpress;Initial Catalog=OA_DB;User ID=sa;pwd=sa" providerName="System.Data.SqlClient"/>
<add name="OA_DBConnectionString3" connectionString="Data Source=.\SqlExpress;Initial Catalog=OA_DB;Persist Security Info=True;User ID=sa;pwd=sa" providerName="System.Data.SqlClient"/>
<add name="sj_OA_DBConnectionString" connectionString="Data Source=.\SqlExpress;Initial Catalog=OA_DB;User ID=sa;Password=" providerName="System.Data.SqlClient"/>
<add name="sj_OA_DBConnectionString2" connectionString="Data Source=.\SqlExpress;Initial Catalog=OA_DB;User ID=sa;Password=" providerName="System.Data.SqlClient"/>
<add name="wc_OA_DBConnectionString2" connectionString="Data Source=.\SqlExpress;Initial Catalog=OA_DB;Persist Security Info=True;User ID=sa;pwd=sa" providerName="System.Data.SqlClient"/>
<add name="wc_OA_DBConnectionString3" connectionString="Data Source=.\SqlExpress;Initial Catalog=OA_DB;Persist Security Info=True;User ID=sa;pwd=sa" providerName="System.Data.SqlClient"/>
<add name="wc_OA_DBConnectionString9" connectionString="Data Source=.\SqlExpress;Initial Catalog=OA_DB;Persist Security Info=True;User ID=sa;pwd=sa" providerName="System.Data.SqlClient"/>
<add name="wc_OA_DBConnectionString10" connectionString="Data Source=.\SqlExpress;Initial Catalog=OA_DB;Persist Security Info=True;User ID=sa;pwd=sa" providerName="System.Data.SqlClient"/>
<add name="qs_OA_DBConnectionString2" connectionString="Data Source=.\SqlExpress;Initial Catalog=OA_DB;User ID=sa;pwd=sa" providerName="System.Data.SqlClient"/>
<add name="qs_OA_DBConnectionString4" connectionString="Data Source=.\SqlExpress;Initial Catalog=OA_DB;User ID=sa;pwd=sa" providerName="System.Data.SqlClient"/>
<add name="qs_OA_DBConnectionString5" connectionString="Data Source=.\SqlExpress;Initial Catalog=OA_DB;User ID=sa;pwd=sa" providerName="System.Data.SqlClient"/>
<add name="qs_OA_DBConnectionString6" connectionString="Data Source=.\SqlExpress;Initial Catalog=OA_DB;User ID=sa;pwd=sa" providerName="System.Data.SqlClient"/>
<add name="qs_OA_DBConnectionString1" connectionString="Data Source=.\SqlExpress;Initial Catalog=OA_DB;Persist Security Info=True;User ID=sa;pwd=sa" providerName="System.Data.SqlClient"/>
<add name="qs_OA_DBConnectionString3" connectionString="Data Source=.\SqlExpress;Initial Catalog=OA_DB;Persist Security Info=True;User ID=sa;pwd=sa" providerName="System.Data.SqlClient"/>
<add name="table_tz_OA_DBConnectionString1" connectionString="Data Source=.\SqlExpress;Initial Catalog=OA_DB;Persist Security Info=True;User ID=sa;Password=sa" providerName="System.Data.SqlClient"/>
<add name="table_xw_OA_DBConnectionString" connectionString="Data Source=.\SqlExpress;Initial Catalog=OA_DB;Persist Security Info=True;User ID=sa;Password=sa" providerName="System.Data.SqlClient"/>
<add name="table_file_OA_DBConnectionString" connectionString="Data Source=.\SqlExpress;Initial Catalog=OA_DB;Persist Security Info=True;User ID=sa;Password=sa" providerName="System.Data.SqlClient"/>
<add name="table_message_OA_DBConnectionString" connectionString="Data Source=.\SqlExpress;Initial Catalog=OA_DB;User ID=sa;Password=sa" providerName="System.Data.SqlClient"/>
<add name="table_bbs_OA_DBConnectionString" connectionString="Data Source=.\SqlExpress;Initial Catalog=OA_DB;User ID=sa;Password=sa" providerName="System.Data.SqlClient"/>
<add name="table_gx_OA_DBConnectionString" connectionString="Data Source=.\SqlExpress;Initial Catalog=OA_DB;Persist Security Info=True;User ID=sa;pwd=sa" providerName="System.Data.SqlClient"/>
<add name="linminchao_OA_DBConnectionString5" connectionString="Data Source=.\SqlExpress;Initial Catalog=OA_DB;Persist Security Info=True;User ID=sa;pwd=sa" providerName="System.Data.SqlClient"/>
</connectionStrings>

最佳答案
  • 五星知识达人网友:独行浪子会拥风
  • 2021-07-19 10:06

把链接字符串改了


connectionString="Data Source=.\SqlExpress;uid=sa;pwd=sa;Initial Catalog=OA_DB"


应为


connectionString="Data Source=.;uid=sa;pwd=sa;Initial Catalog=OA_DB"

我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯