在连接字符串中加入"Enlist=false",问题就这样解决了。
ConnectionString = "Data Source=.;Initial Catalog=cargoplus;Enlist=false;Persist Security Info=True;User ID=sa;Password=sa"
本文介绍了解决连接字符串问题的方法,在连接字符串中加入Enlist=false解决了特定的应用程序错误。更新后的连接字符串包括数据源、初始目录、安全性设置、用户名和密码等详细信息。
在连接字符串中加入"Enlist=false",问题就这样解决了。
ConnectionString = "Data Source=.;Initial Catalog=cargoplus;Enlist=false;Persist Security Info=True;User ID=sa;Password=sa"

被折叠的 条评论
为什么被折叠?