在 ASP.NET 网站中使用 SQL Server Compact Edition
我对数据库几乎一无所知,但需要在我的 ASP.NET 小型网站上存储和呈现用户输入(最多数千条记录)。我应该考虑 SQL Server Compact Edition 吗?在微软文档中我发现:
SQL Server Compact 3.5 目前尚未针对用作网站数据库进行优化。默认情况下,来自 ASP.NET 连接的应用程序的连接在 SQL Server Compact 3.5 中被阻止。 SQL Server Compact 3.5 针对在应用程序中用作嵌入式数据库进行了优化。使用 SQL Server Compact 3.5 作为网站数据库需要支持多个用户和并发数据更改。这可能会导致性能问题。因此,这些场景不受支持。 SQL Server 的其他版本(包括 SQL Server 2005 Express Edition 和更高版本)都经过优化,可用作网站的数据库。
但后来我记得读到一些用户评论说4.0版本的SQL Server CE终于可以在ASP.NET场景中正常工作了。有人愿意分享他的经验吗?我想首先尝试 CE,因为 SQL Server 需要在我的托管上支付额外费用。
I know next to nothing about databases, but need to store and present user input on my ASP.NET tiny website (up to several thousand records). Should I consider SQL Server Compact Edition? In Microsoft docs I found:
SQL Server Compact 3.5 is not currently optimized to serve as a database for Web sites. By default, connections from ASP.NET-connected applications are blocked in SQL Server Compact 3.5. SQL Server Compact 3.5 is optimized for use as an embedded database within applications. Using SQL Server Compact 3.5 as a database for Web sites requires support for multiple users and concurrent data changes. This can cause performance problems. Therefore, these scenarios are not supported. Other editions of SQL Server, including SQL Server 2005 Express Edition and later versions, are optimized to serve as a database for Web sites.
But then I remember reading some user comment that the 4.0 version of SQL Server CE is finally working OK in ASP.NET scenario. Anyone care to share his experience? I would like to try CE first as SQL server requires additional fee on my hosting.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
从 SQL Server Compact 4.0 的下载站点:
和:
(强调我的)
总之 - 它专门针对网络场景进行了增强。
From the download site for SQL Server Compact 4.0:
And:
(emphasis mine)
In conclusion - it has specifically been enhanced for web scenarios.
是的,SQL Server Compact 4.0 在设计时就考虑了与您类似的场景。
新的嵌入式数据库支持 ASP.NET
SQL CE 是一个免费的嵌入式数据库引擎,可轻松实现数据库存储。
Visual Studio 2010 SP1 包括 SQL CE 的新工具支持
Yes, SQL Server Compact 4.0 has been designed with scenarios similiar to yours in mind.
New Embedded Database Support with ASP.NET
SQL CE is a free, embedded, database engine that enables easy database storage.
Visual Studio 2010 SP1 includes new tooling support for SQL CE