开发者

Does SqlCE 4.0 have it's own Connection Provider in Visual Studio 2010?

I'm trying to create a new SqlCE 4.0 sdf database but I'm not sure which connection provider I need to use?

I downloaded CE4.0 from Microsoft separately. ... so is t开发者_C百科here a new provider we're suppose to use? Or do we use the 3.5 provider?


A sample connection string would look like this:

<add name="integration" connectionString="Data Source=testdb.sdf" providerName="System.Data.SqlServerCe.4.0" />

You should also reference the System.Data.SqlServerCe.dll and the ADO.NET classes it provides.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜