【问题标题】:Permissions to access paradox db file under Windows Server 2008 x 64Windows Server 2008 x 64 下访问 paradox db 文件的权限
【发布时间】:2014-06-04 09:24:47
【问题描述】:

我需要连接到 Windows Server 2008 x 64 下的 Paradox db 文件。

为此,我使用 ODBC 编写了一个 .NET 控制台应用程序(32 位)。 此应用程序只能在管理员权限 (UAC) 下运行。

但没有它会引发异常:

ERROR [HY000] [Microsoft][ODBC Paradox Driver] Reserved error (-5016); there is no message for this error.
ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed
ERROR [HY000] [Microsoft][ODBC Paradox Driver] Reserved error (-5016); there is no message for this error.

所以我想弄清楚应该给予什么权限。

Giving All Permissions to Everyone 在应用程序文件夹下、数据库文件夹下、注册表文件夹下 HKEY_LOCAL_MACHINE\SOFTWARE\ODBC 如下所述http://support.microsoft.com/kb/295297、odbc* 文件%WINDIR%\System32 没有帮助。

啊,我也尝试将提供程序更改为 OLE DB (Microsoft.Jet.OLEDB.4.0) - 遇到了同样的权限问题(使用 UAC 一切正常)

来自外部数据库驱动程序的意外错误 (11265)。

有什么建议吗?

【问题讨论】:

    标签: permissions odbc oledb paradox windows64


    【解决方案1】:

    毕竟我决定使用 UAC 权限。

    只有在应用程序在调度程序下运行时才可能对应用程序授予权限(在创建任务时选中“以最高权限运行”选项)。

    因为我的程序最初应该在 sheluder 下运行 - 问题解决了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-12-06
      • 1970-01-01
      • 2010-11-19
      • 2018-11-23
      • 1970-01-01
      • 2013-02-20
      相关资源
      最近更新 更多