【问题标题】:Can not connect to sdf file in sql server management studio on windows mobile 6.5.3 device无法连接到 windows mobile 6.5.3 设备上的 sql server management studio 中的 sdf 文件
【发布时间】:2011-12-19 21:45:32
【问题描述】:

我正在尝试连接到 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 文件。

有人有什么想法吗?

【问题讨论】:

  • 您是否尝试过以管理员身份运行 SSMS?
  • 你知道,我从来没有想过。我继续以管理员身份运行 SSMS,并成功连接到手持设备上的 SDF 文件。谢谢你的建议。在我尝试过之后,我想,为什么我从来没有想过,哈哈。但是话又说回来,一些最简单的事情有时会躲避我们。 :)

标签: sql-server-ce windows-mobile-6.5 intermec


【解决方案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");

【讨论】:

    【解决方案2】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-10-20
      • 2014-01-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多