SQL Server CE - 是否需要安装(而不是仅包含 DLL)?

发布于 2024-09-12 06:37:36 字数 810 浏览 4 评论 0原文

背景 - 如果我正在构建 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

赢得她心 2024-09-19 06:37:36

您不需要安装 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.

心的憧憬 2024-09-19 06:37:36

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.

爱她像谁 2024-09-19 06:37:36

根据 Microsoft 文档:

“要随应用程序安装 Microsoft SQL Server Compact 3.5 (SQL Server Compact 3.5),必须运行适用于台式计算机的 SQL Server Compact 3.5 安装程序 (SSCERuntime-ENU.msi)。通过运行安装程序来安装 SQL Server Compact 3.5注册本机 DLL 并将托管程序集放入全局程序集缓存中,这确保将来可以通过 Microsoft Update 或类似技术为计算机上的 SQL Server Compact 3.5 安装提供服务。”

另请参阅本文文章(LINQ 和部署 SQL Server CE 3.5)

According to this Microsoft document:

"To install Microsoft SQL Server Compact 3.5 (SQL Server Compact 3.5) with the application, you must run the SQL Server Compact 3.5 installer for desktop computers (SSCERuntime-ENU.msi). Installing SQL Server Compact 3.5 by running the installer registers the native DLLs and puts the managed assemblies in the Global Assembly Cache. This makes sure that the installation of the SQL Server Compact 3.5 on the computer can be serviced by Microsoft Update or similar technologies in future."

See also this article (LINQ and Deploying SQL Server CE 3.5)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文