如何共享一个SQL Server CE数据库文件(。自卫队)的多个进程?自卫队、多个、数据库文件、进程

2023-09-03 01:49:26 作者:痞子

我在SQL Server CE数据库。当连接不同的计算机的多个应用程序向数据库抛出异常。

I have a database in SQL Server CE. When connecting several applications of different computers to the database throw an exception.

这是个例外:

有一个文件共享冲突。一个不同的进程可能会使用   文件。   异常的类型为SqlCeException

There is a file sharing violation. A different process might be using the file. type of exception is "SqlCeException".

这是我的连接字符串:

Data Source=\\server\ProductionDB\ProductionControl.sdf;File Mode=Read Write; Max Database Size = 4000

的SQL Server CE的版本是3.5 SP2

The version of SQL Server CE is 3.5 SP2

推荐答案

我误解你的问题开始,但我不认为SQL Server CE的支持来自不同计算机的多个连接。

I misread your question initially, but I don't believe SQL Server CE supports multiple connections from different computers.

从MS guide:

在您需要的数据服务功能,如支持多个远程能力   用户,你应该开始使用SQL Server防爆preSS版和工作了数据业务的家谱。

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.

您可以在同一台机器多个连接(多达256个),但是从多台机器连接需要SQL防爆preSS版。它是免费的且易于部署。

You can have multiple connections (up to 256) from the same machine, but connections from multiple machines requires SQL Express Edition. It's freely available and easy to deploy.

这里的链接:http://www.microsoft.com/sqlserver/en/us/editions/ex$p$pss.aspx