我想从我的C#的WinForm程序中打开.sdf
文件(SQL Server精简),我得到这个错误:打开SQL Server CE版本3.5和4
{Incompatible Database Version. If this was a compatible file, run repair. For other cases refer to documentation. [ Db version = 4000000,Requested version = 3505053,File name = \?\C:\inetpub\wwwroot\WS\bin\PC.sdf ]}
我需要有打开的可能性版本4和3.5
如何做到这一点?
感谢
如果您使用4.0提供程序打开3.5数据库,您将收到错误消息。 – ErikEJ
感谢您的澄清。在一个应用程序中重新加载提供程序是否是最佳实践? –