如果我使用 .mdf 文件部署应用程序,用户是否需要安装 SQL 2008 Express?

发布于 2024-07-22 21:10:34 字数 209 浏览 1 评论 0原文

我正在 3.5 框架上制作一个 Win 应用程序。 我想在应用程序中包含一个数据库文件。 这将是一个单用户数据库。 我查看了可以添加的 2 种不同类型的数据库文件:sdf 和 mdf。 Thw sdf(紧凑)数据库缺少我需要的一些功能,所以我更喜欢 mdf。 mdf 文件“面向服务的数据库文件”的描述让我相信安装我的应用程序的人还必须安装访问该 mdf 所需的 SQL 服务。 它是否正确?

I'm making a Win app on the 3.5 framework. I'd like to include a database file with the app. This would a single-user db. I looked at the 2 different types of db files I can add, the sdf and mdf. Thw sdf (compact) db is missing some functionality I need, so I prefer the mdf. The description on the mdf file "Service oriented database file" leads me to believe that whoever installed my application would also have to install the SQL service required to access that mdf. Is this correct?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

古镇旧梦 2024-07-29 21:10:34

是的。 MDF 只是一个文件,需要 SQL Server 数据库引擎才能使用它。

Yes. MDF is just a file and needs a SQL Server database engine to use it.

拥抱影子 2024-07-29 21:10:34

是的,至少需要 SQL Express。 紧凑版的优点是消除了这一要求,因为数据库引擎可以进行x-copy部署。

Yes, at a minimum SQL Express would be required. The advantage of the compact edition is that this requirement is eliminated since the database engine can be x-copy deployed.

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