简体   繁体   English

可以共享一个SQL Compact Edition 3.5数据库吗?

[英]Can share a SQL Compact Edition 3.5 database?

I made an application with SQL Compact Edition 3.5 to be used from many user but in the test I got can't connect to databse after the first one how connected ! 我使用SQL Compact Edition 3.5制作了一个应用程序,供许多用户使用,但是在测试中,第一个连接后,我无法连接到databse!

this is an erreur in my application or probleme with many connexion in SDF file ? 这是我的应用程序中的错误,还是SDF文件中存在许多连接问题?

and what about Compact Edition 3.5 accept 256 connexion! 紧凑版3.5接受256个连接呢?

Depending on how your application behaves, you might be able to replace SQL Compact with SQLite . 根据您的应用程序的行为,您也许可以将SQL Compact替换为SQLite It can really only handle one write at a time but can handle multiple simultaneous reads. 它实际上一次只能处理一个写入,但可以处理多个同时读取。 Anything more than that and you should be looking at a real SQL server. 除此之外,您应该在看一台真正的SQL服务器。

You should look at a Microsoft Locking in SQL Server CE . 您应该查看SQL Server CE中的Microsoft Locking In a nutshell, it says multi users/application can concurrently access the SDF at the same time provided the database is not locked in a transaction. 简而言之,如果数据库未锁定在事务中,则多用户/应用程序可以同时访问SDF。

Also, I like to mentioned that we also do not have multi user/application access to a SQL Server CE 3.1 file on a network drive. 另外,我想提到我们对网络驱动器上的SQL Server CE 3.1文件也没有多用户/应用程序访问权限。 (This constraint may still be true for SQL Server CE 3.5). (对于SQL Server CE 3.5,此约束可能仍然适用)。 If you're being affected by this, you will have to ensure your SDF is being opened using a local drive reference. 如果您受到此影响,则必须确保使用本地驱动器引用打开了SDF。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM