加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > MsSql教程 > 正文

sql-server-ce – 在多用户场景下的SQL Server CE – 这真的是真

发布时间:2020-12-12 16:53:57 所属栏目:MsSql教程 来源:网络整理
导读:我正在尝试使用SQL Server Compact Edition 3.5作为销售应用程序的数据库后端.将有3-4个 Windows Forms应用程序的安装,所有这些应用程序将通过LINQ2SQL读取并写入位于网络共享上的一个.sdf文件. 我的(非常深入的)测试表明这可能是可行的. Documentation表示SQ
我正在尝试使用SQL Server Compact Edition 3.5作为销售应用程序的数据库后端.将有3-4个 Windows Forms应用程序的安装,所有这些应用程序将通过LINQ2SQL读取并写入位于网络共享上的一个.sdf文件.

我的(非常深入的)测试表明这可能是可行的. Documentation表示SQL Server CE最多支持256个连接. Does SQL Server CE even lock its rows?还有其他并发问题,我应该担心吗?

底线是,有没有人使用SQL Server CE成功连接多个应用程序连接到同一个数据库?

我应该用自己的头痛和SQL Server Express一起去吗?

解决方法

MS建议(来自Darian Miller的 comparison guide):

When you require data service
functionality,such as the ability to
support multiple,remote users,you
should start with SQL Server Express
Edition and work up the data service
family tree.

运行时支持同一机器上的并发,不知道多台机器访问该文件.在文件通过网络共享存储的情况下,可能不符合ce的最佳性能配置文件.我会说与EE,这是一个快速安装与简单的msi.

SSCE并发:

SSCE allows multiple connections to
the same database (.sdf file) from the
same application or even multiple
applications on the same computer.
This gives you more freedom to
structure your application as needed,
such as allowing the user to continue
to interact with data while performing
synchronization with a back-end
database,or to have multiple
applications on the same machine share
an SSCE data store. Transactional
concurrency locks are made by the
database engine to prevent concurrent
connections from accessing the same
records at the same time. The
technical limit on concurrent
connections for a single database is
256,but 70-80 is a better practical
limit from a performance perspective.

http://technet.microsoft.com/en-us/library/bb380177%28SQL.90%29.aspx

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读