SQL Server CE in a multi user scenario - is this really, really stupid?

后端 未结 3 742
有刺的猬
有刺的猬 2020-12-05 20:39

I am trying to use SQL Server Compact Edition 3.5 as a database backend for a sales application. There would be 3-4 installations of a Windows Forms application which would

3条回答
  •  悲哀的现实
    2020-12-05 20:51

    MS recommends (from Darian Miller's 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.

    the runtime supports concurrency on the same machine, not sure about multiple machines accessing the file. in the case the file is stored over a network share, that may not fit the optimal performance profile for ce. i would say go with EE, it's a snap to install with a simple msi.

    SSCE Concurrency:

    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

提交回复
热议问题