如何共享一个SQL Server CE数据库文件(。自卫队)的多个进程? [英] How do I share a SQL Server CE database file (.sdf) for multiple processes?

查看:145
本文介绍了如何共享一个SQL Server CE数据库文件(。自卫队)的多个进程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在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 <一href="http://download.microsoft.com/download/A/4/7/A47B7B0E-976D-4F49-B15D-F02ADE638EBE/Compact_Ex$p$pss_Comparison.doc">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.

这里的链接:<一href="http://www.microsoft.com/sqlserver/en/us/editions/ex$p$pss.aspx">http://www.microsoft.com/sqlserver/en/us/editions/ex$p$pss.aspx

这篇关于如何共享一个SQL Server CE数据库文件(。自卫队)的多个进程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆