0

我正在尝试连接到 Intermec Windows Mobile 6.5.3 设备上的 sdf 文件。手持设备使用 SQL Server Compact 3.5。我的电脑安装了 SQL Server 2008 R2。如果我将 sdf 文件从手持设备复制到我的计算机上,我可以通过 SQL Server 2008 Management Studio 连接到该文件。但是,当我尝试连接到手持设备上的 sdf 文件时,我从工作室管理中收到以下错误消息。

Cannot connect to Mobile Device\Program Files\app\Data\app.sdf.
Additional information:
    Unable to configure ActiveSync for use with this application. 
    You don't have the required privileges on this machine to complete this
    operation. Contact your machine administrator for assistance. 
    (SQL Server Compact ADO.NET Data Provider)

我们的一个旧应用程序使用 SQL Server Compact 3.0,我能够通过 SQL Server 2005 Management Studio 连接到手持设备上的 sdf 文件。

有人有想法么?

4

2 回答 2

1
  1. 首先检查您的 Active Sync。你可以看到你的 WM 应用程序
  2. 移动设备-StorageCard-ProgrammeFiles-project.exe 在此处手动放置您的 .sdf 文件
  3. 为您的连接字符串提供此路径

SqlCeConnection cn = new SqlCeConnection(@"Data Source=\Storage Card\Program Files\ProjectName\TestDatabase.sdf");

于 2012-05-03T08:00:50.930 回答
0

以管理员身份运行 SQL Server Management Studio

于 2011-12-21T10:22:06.453 回答