ASP。net+SQLSERVER 数据库链接问题。急求答案
Web.Congif里面配置为:
<add name="strConn" connectionString="Data Source=WANGKUNMING;Initial Catalog=ThreeDoor;Integrated Security=True"/>
可运行时报错说是:
在 ConnectionString 中未指定 OLE DB 提供程序。示例为:“Provider=SQLOLEDB;”。
如果我添加Provider=SQLOLEDB改成:
<add name="strConn" connectionString="Data Source=WANGKUNMING;Initial Catalog=ThreeDoor;Integrated Security=True"/>
报错说是:
没有可用的错误消息,结果代码: DB_E_ERRORSOCCURRED(0x80040E21)。
急求答案,谢谢
根据网友提供信息说:
<add name="strConn" connectionString="Data Source=WANGKUNMING;Initial Catalog=ThreeDoor;Integrated Security=True" providerName="System.Data.SqlClient"/> 加了个providerName="System.Data.SqlClient"
还是报同样的错