FIX: "Cannot open the shared memory" error message when you try to create or open a SQL Server Compact 3.5 SP2 database file on a shared network folder


Assume that you have Microsoft SQL Server Compact Edition 3.5 Service Pack 2 (SQL Server Compact 3.5 SP2) installed on the computer. When you try to create or open a SQL Server Compact 3.5 SP2 database file (.sdf file) on a shared network folder, you receive the following error message:
Error: Internal error. Cannot open shared memory.

Additionally, an exception that resembles the following is generated:
Exception type: System.Data.SqlServerCe.SqlCeException

Message=Internal error: Cannot open the shared memory region.

Source=SQL Server Compact ADO.NET Data Provider



Note This issue occurs only in SQL Server Compact 3.5 SP2.


Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, submit a request to Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft website: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.


To apply this hotfix, you must exit all applications that are using SQL Server Compact. Then, you must uninstall any installations of Microsoft SQL Server Compact 3.5 SP2 and Microsoft SQL Server Compact 3.5 SP2 x64.

Note This SQL Server Compact hotfix has a complete .msi package and does not replace a partial list of files from a previous installation.

Restart requirement

You do not have to restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.

File information

The global version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

For all supported x86-based versions of SQL Server Compact 3.5
File nameFile versionFile sizeDateTimePlatform,66402-Jun-201202:31x86,20002-Jun-201202:31x86,48002-Jun-201202:31x86,48002-Jun-201202:31x86
For all supported x64-based versions of SQL Server Compact 3.5
File nameFile versionFile sizeDateTimePlatform,66402-Jun-201202:31x64,20002-Jun-201202:31x64


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Thuộc tính

ID Bài viết: 2718718 - Xem lại Lần cuối: 10-09-2012 - Bản sửa đổi: 1

Phản hồi