SQL Server CE - 是否需要安装(而不是仅包含 DLL)?
背景 - 如果我正在构建 WPF 桌面应用程序(VS2010 和 .NET 4)并且希望使用轻量级数据库,但无需单独安装。从我读到的内容来看,SQLite 没问题,但我认为坚持使用 Microsoft 位并尝试使用 SQL Server CE 会更好。
问题 - SQL Server CE 是否需要与 WPF 应用程序的安装分开的“安装”?或者它是否只需要我在 VS2010 中创建数据库(尽我所能)并确保部署应用程序时包含适当的 DLL?我正在查看以下链接中的 doco,但我不清楚...
http://technet.microsoft.com/en-us/library/bb190958(SQL.100).aspx
谢谢
PS。我看到的另一个令人担忧的项目是“如果您安装 Windows XP SP2,要使用 SQL Server Compact 连接,则必须启用 HTTP 访问。默认设置是禁用 HTTP 访问”,来自页面 http://technet.microsoft.com/en-us/library/ms171869(SQL.100 ).aspx 所以希望这不是能够使用 CE 而没有安装问题/大惊小怪的另一个复杂情况?
Background - If I am building a WPF desktop application (VS2010 & .NET 4) and would like a lightweight database to use but without having to have a separate installation. SQLite would be OK from what I read however I was thinking it would be good to stick with the Microsoft bits and try to use SQL Server CE.
Question - Does SQL Server CE require an "installation" separate to my WPF application's installation? Or does it just require me to create the database (as I can) within VS2010 and ensure the appropriate DLL is contained in the application when it's deployed? I'm looking at the doco at the following link and it's not clear to me...
http://technet.microsoft.com/en-us/library/bb190958(SQL.100).aspx
thanks
PS. Another worrying item I see is "If you install Windows XP SP2, to use SQL Server Compact connectivity, you will have to enable HTTP access. The default setting is to disable HTTP access", from the page http://technet.microsoft.com/en-us/library/ms171869(SQL.100).aspx So hopefully this is not another complication to being able to use CE with no installation issues/fuss?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您不需要安装 SQL Server CE 2005。只需复制 DLL 如 MSDN 上所述。不需要管理员权限。
You don't need an installation for SQL Server CE 2005. Just copy the DLLs as described on MSDN. Administrator priviliges are not required.
Sql Server CE 版本 4 不需要安装,但它尚未发布(甚至不是测试版)。您可以在这里阅读更多相关信息: ASP.NET 的新嵌入式数据库支持
如果我是你,我会坚持使用 Sqlite。它是免费的,拥有出色的 .Net 提供程序和实体框架支持,而且速度非常快。
Sql Server CE version 4 will not require installation but it has not been released yet (Not even a beta). You can read more about it here: New Embedded Database Support with ASP.NET
If I were you I would just stick with Sqlite. It's free, has an excellent .Net provider with Entity Framework support and is really fast.
根据 此 Microsoft 文档:
另请参阅本文文章(LINQ 和部署 SQL Server CE 3.5)
According to this Microsoft document:
See also this article (LINQ and Deploying SQL Server CE 3.5)