如题,在用ODBC, dbase 读取DBF文件时,本机能读取出来。在其他机器上就报外部数据库驱动程序(8458)错误。
东西都装了,数据源也有了,数据源都重装好几次了,就是有这问题。
请各位大侠帮忙,问题解决了直接加分一定追加到150分。。

解决方案 »

  1.   

    你要在ODBC数据源管理器里在系统DSN选项卡里添加一个系统数据源(DSN),然后测试一下看能否成功应该只有二种可能:
    一是ODBC驱动程序有异常,需要重新安装相应的ODBC驱动程序
    二是权限问题我在数据库开发时,也是用ODBC接口访问后台数据库,出现问题基本上也就是上面二种可能
      

  2.   

    这些我都做了啊,,驱动也下了最新的,access什么还都重装了,而且,是有的机器有那异常,有的就能正常读取 了
    期待解决
      

  3.   

    你要在ODBC数据源管理器里在系统DSN选项卡里添加一个系统数据源(DSN),然后测试一下看能否成功
    你添加测试了吗?如果在ODBC数据源管理器里添加了,测试了,提示是成功应该就不会有问题最重要的时你添加了吗?你测试了吗?测试的结果是什么
      

  4.   

    我也遇到这个问题,不知如何解决! 
    我的系统是win7 正版我安装的是 visual2008 RTM 版本.
    用VB.NET 写了一个CS程序,其中有一个将数据生成 aaa.dbf 文件到 C: 盘结果出现错误如下:ERROR [HY000] [Microsoft][ODBC dBase 驱动程序] Microsoft Jet 数据库引擎打不开文件.
    。它已经被别的用户以独占方式打开,或没有查看数据和权限。可是,就是我自已的电脑,刚刚编译完的。没有其它人用。
    有关调用实时(JIT)调试而不是此对话框的详细信息,
    请参见此消息的结尾。************** 异常文本 **************
    System.Data.Odbc.OdbcException: ERROR [HY000] [Microsoft][ODBC dBase 驱动程序] Microsoft Jet 数据库引擎打不开文件''。  它已经被别的用户以独占方式打开,或没有查看数据的权限。
       在 System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle, RetCode retcode)
       在 System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader, Object[] methodArguments, SQL_API odbcApiMethod)
       在 System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader)
       在 System.Data.Odbc.OdbcCommand.ExecuteNonQuery()
       在 jmglexe.MouldbarcodePrint.Button2_Click(Object sender, EventArgs e) 位置 D:\scgl\scglexe\barcodePrint.vb:行号 139
       在 System.Windows.Forms.Control.OnClick(EventArgs e)
       在 System.Windows.Forms.Button.OnClick(EventArgs e)
       在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
       在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       在 System.Windows.Forms.Control.WndProc(Message& m)
       在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
       在 System.Windows.Forms.Button.WndProc(Message& m)
       在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    ************** 已加载的程序集 **************
    mscorlib
        程序集版本: 2.0.0.0
        Win32 版本: 2.0.50727.4952 (win7RTMGDR.050727-4900)
        基本代码: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    ----------------------------------------
    jmglexe
        程序集版本: 1.0.0.0
        Win32 版本: 1.0.0.0
        基本代码: file:///D:/Tmp_Mouldgl211_GX2008_20100925/jmglexe/jmglexe/bin/Release/jmglexe.exe
    ----------------------------------------
    System.Windows.Forms
        程序集版本: 2.0.0.0
        Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)
        基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System
        程序集版本: 2.0.0.0
        Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)
        基本代码: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Drawing
        程序集版本: 2.0.0.0
        Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)
        基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    Microsoft.VisualBasic
        程序集版本: 8.0.0.0
        Win32 版本: 8.0.50727.4927 (NetFXspW7.050727-4900)
        基本代码: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
    ----------------------------------------
    System.Configuration
        程序集版本: 2.0.0.0
        Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)
        基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------
    System.Xml
        程序集版本: 2.0.0.0
        Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)
        基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    System.Data
        程序集版本: 2.0.0.0
        Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)
        基本代码: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
    ----------------------------------------
    mscorlib.resources
        程序集版本: 2.0.0.0
        Win32 版本: 2.0.50727.4952 (win7RTMGDR.050727-4900)
        基本代码: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    ----------------------------------------
    System.Transactions
        程序集版本: 2.0.0.0
        Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)
        基本代码: file:///C:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
    ----------------------------------------
    System.EnterpriseServices
        程序集版本: 2.0.0.0
        Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)
        基本代码: file:///C:/Windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
    ----------------------------------------
    System.Windows.Forms.resources
        程序集版本: 2.0.0.0
        Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)
        基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_zh-CHS_b77a5c561934e089/System.Windows.Forms.resources.dll
    ----------------------------------------
    Microsoft.ReportViewer.WinForms
        程序集版本: 9.0.0.0
        Win32 版本: 9.0.21022.8
        基本代码: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.ReportViewer.WinForms/9.0.0.0__b03f5f7f11d50a3a/Microsoft.ReportViewer.WinForms.dll
    ----------------------------------------
    Microsoft.ReportViewer.Common
        程序集版本: 9.0.0.0
        Win32 版本: 9.0.21022.8
        基本代码: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.ReportViewer.Common/9.0.0.0__b03f5f7f11d50a3a/Microsoft.ReportViewer.Common.dll
    ----------------------------------------
    System.Web.Services
        程序集版本: 2.0.0.0
        Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)
        基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll
    ----------------------------------------
    System.Web
        程序集版本: 2.0.0.0
        Win32 版本: 2.0.50727.4955 (win7RTMGDR.050727-4900)
        基本代码: file:///C:/Windows/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
    ----------------------------------------
    Microsoft.ReportViewer.ProcessingObjectModel
        程序集版本: 9.0.0.0
        Win32 版本: 9.0.21022.8
        基本代码: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.ReportViewer.ProcessingObjectModel/9.0.0.0__b03f5f7f11d50a3a/Microsoft.ReportViewer.ProcessingObjectModel.dll
    ----------------------------------------
    System.resources
        程序集版本: 2.0.0.0
        Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)
        基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.resources/2.0.0.0_zh-CHS_b77a5c561934e089/System.resources.dll
    ----------------------------------------
    expression_host_882efce7040246afa2769119618f37e6
        程序集版本: 10.8.21022.8
        Win32 版本: 9.0.21022.8
        基本代码: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.ReportViewer.Common/9.0.0.0__b03f5f7f11d50a3a/Microsoft.ReportViewer.Common.dll
    ----------------------------------------
    System.Data.resources
        程序集版本: 2.0.0.0
        Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)
        基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Data.resources/2.0.0.0_zh-CHS_b77a5c561934e089/System.Data.resources.dll
    ----------------------------------------************** JIT 调试 **************
    要启用实时(JIT)调试,
    该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
    jitDebugging 值。
    编译应用程序时还必须启用
    调试。