gpt4 book ai didi

c# - Sql ce 3.0 数据库多用户

转载 作者:太空宇宙 更新时间:2023-11-03 19:36:58 25 4
gpt4 key购买 nike

我正在尝试从两个不同的应用程序访问 Windows 移动设备上的 Sql CE 2005 数据库。

根据我在网上找到的信息,它应该可以工作,但是当我打开第二个连接时,出现文件共享冲突错误

"There is a file sharing violation. A different process might be using the file. [ \\\Program Files\xx\DB.sdf ]"

关于我做错了什么的任何想法?

最佳答案

SQL Compact does support multiple connections to the database , even back with version 3.0 .第一个进程如何打开数据库?例如,3.0 和 3.1 的移动查询分析器确实以独占方式打开数据库,有效地将其锁定在任何其他进程之外。

关于c# - Sql ce 3.0 数据库多用户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/938729/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com